Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Pb with characters ISO-8859-1
October 11, 2007, 6:50 pm
rate this thread
I have a personal site (www.excel-exercice.com) but I have a big pb
with the special characters like (espacially in french)
I have write in my header <meta http-equiv=3D"Content-Type"
content=3D"text/html; charset=3Diso-8859-1" lang=3D"fr"> but it doesn't
You can see the pb by visiting the site and change the language (by
clicking on the flag)
How could give me an explanation ?
Re: Pb with characters ISO-8859-1
I doubt that the lang attribute on a meta element does anything (since
it has no content, and isn't rendered). But never mind, that's not the
main problem here.
It's because the server is delivering those pages with this header:
Content-Type: text/html; charset=UTF-8
The server header trumps the meta element.
Your text does appear to be encoded in ISO-8859-1, not UTF-8.
So, two solutions: either change the server to put charset=ISO-8859-1 in
the header instead, or transcode your pages so they are UTF-8 (and
change or delete the meta elements-- it will still work if you don't,
but will cause confusion in future to anyone reading the source).
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — The site's Newest Thread. Posted in » Secure Shell Forum