Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ISO-8859-1 Not working on IE

I am working on some programs in spanish, so I need to use accent marks. This is why I use # -*- coding: iso-8859-1 -*- and <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> on all my programs (python). I tested in chrome,firefox and safari and they all work puttin the accent marks. The only one that does not work is IE8. It does not apply the accent mark, and add some other character instead.

Does anyone know if there is a problem with IE8?

Is it better to use UTF-8 instead?

like image 892
mauguerra Avatar asked Dec 03 '25 02:12

mauguerra


2 Answers

It is better to use UTF-8.

Note that "iso-8859-1" is a common mislabeling of "windows-1252", also known as "cp1252". Try being more explicit and see if this resolves your issues.

like image 137
Francis Avila Avatar answered Dec 05 '25 16:12

Francis Avila


Yes, it is better to use UTF-8 instead.

Your question really cannot be answered unless you also provide the bytes that you are sending.

like image 30
Daniel Pryden Avatar answered Dec 05 '25 17:12

Daniel Pryden



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!