Afficher un message
Vieux 26/04/2008, 12h53   #1
Martin Honnen
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Character encoding

Mambo Bananapatch wrote:
> I'm preparing a site for a client which includes several pages
> containing Cyrillic characters. I used the UTF-8 charset, but the
> Cyrillic characters appeared as question marks (and, oddly, some
> Chinese characters as well.) I tried every Cyrillic charset I could
> find and nothing worked.



> So: a) what exactly did Dreamweaver do, and b) how could I have hand-
> coded whatever it is?


Well it all depends on what exactly you do when you say "I used the
UTF-8 charset" or "I tried every Cyrillic charset"? Have you used an
editor that supports saving as UTF-8 (or a Cyrillic charset) and have
you used it so that it saved your documents as UTF-8 (or a Cyrillic
charset)? That is all what you need to do to ensure your files are
properly encoded. Then, when serving them over HTTP you need to make
sure the server sends a HTTP Content-Type response header indicating the
used charset as a paramter e.g.
Content-Type: text/html; charset=UTF-8

--

Martin Honnen
http://JavaScript.FAQTs.com/
  Réponse avec citation
 
Page generated in 0,06549 seconds with 9 queries