![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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? |
#3
| |||
| |||
|
|
(Also posted in alt.html -- my apologies if I've violated etiquette.) |
#4
| |||
| |||
|
|
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/ |
#5
| |||
| |||
|
#6
| |||
| |||
|
|
if I were to hand-code a page with Cyrillic characters, and didn't have access to Dreamweaver, how would I encode each file? |
|
And why must I encode each file, in addition to including the UTF-8 Content-Type response header? |
#7
| |||
| |||
|
|
On Sun, 27 Apr 2008, Mambo Bananapatch wrote: if I were to hand-code a page with Cyrillic characters, and didn't have access to Dreamweaver, how would I encode each file? And why must I encode each file, in addition to including the UTF-8 Content-Type response header? I don't understand what this question means. |
#8
| |||
| |||
|
|
Normally the browser learns what encoding to read by the server's HTTP headers. An http-equiv declaration in an HTML file is a way to override a server's content-type (encoding). |
|
You only use this if your server isn't serving files with the correct content-type. |
#9
| |||
| |||
|
|
An http-equiv declaration in an HTML file is a way to override a server's content-type (encoding). |
![]() |
| Thread Tools | |
| Display Modes | |
| |