|
Posted by Jukka K. Korpela on 06/01/06 22:33
BusyGuy <BusyGuy@Work.ru> scripsit:
> I can, for example, do a page in BBEdit and type the cyrillic alphabet
> in it. The result remains correct on my screen but wrong online. you
> can see it at http://eastwest-commerce.net/test
First, you have a missing quotation mark that prevents at least some
browsers from recognizing the <meta> tag where you try to declare the
character encoding. It should be
<META HTTP-EQUIV="Content-Type" CONTENT="text/html;
charset=windows-1251">
Second, the data on the page isn't in windows-1251 encoding, or in any other
encoding commonly used for texts using Cyrillic letters. It might be
MacCyrillic, but such an encoding should not be used on the Web. I'm pretty
sure that the cause of the problem is one or both of the following:
1) Your software saves the data in some Mac-specific encoding.
2) The software that you use for data transfer (e.g., a separate FTP
program, or the upload feature of your authoring software) performs an
incorrect character encoding conversion (e.g., converting from a Mac
encoding to windows-1251 without realizing that the data already was in
windows-1251, making the result all wrong).
You need to save the data in some widely known encoding (such as
windows-1251), or convert it to such an encoding, and transfer it to the
server in a manner that preserves 8-bit bytes as such; in FTP, use binary
mode to prevent any unwanted character set conversion attempts at that
phase.
There are some garbage characters at the start of the document, before the
<html> tag. Make sure they get removed.
There's quite a lot to be fixed on the page in other respects, but I won't
go into them (and it would be much easier to rewrite the page than to fix
it), because the above-mentioned principles should handle the problem with
Cyrillic letters.
Note: Windows-1251 does not contain all the Cyrillic letters that are used
in different languages, but it is sufficient for Russian, for example.
--
Yucca, http://www.cs.tut.fi/~jkorpela/
[Back to original message]
|