Hi,
Bent said:
Currently I have a problem: I need to make sure that a
text-file is saved in a given codepage (in this case:
ISO8859-5, which is Russian). If I install MUI and type
the Russian characters, everything looks ok, but when I
then take a hex-editor and look at the file, I can see
that it is NOT saved in that codepage. Furthermore, when I
transfer the text-file to my target (which runs Linux),
the only thing I see is garbage.
Please give me some hints to how to save the textfile in
the correct codepage.
I do it all the time with all codepages - Russian, Polish,
Japanese (I work as I18n software engineer), so I can answer
all your questions. It's all explained on my instructional site
"Cyrillic (Russian): instructions for Windows and Internet":
http://ourworld.compuserve.com/homepages/PaulGor/ but shortly:
1) First, to work with Russian _texts_ you do NOT any MUI,
do NOT need to '...setup ... w2k to Russian'.
One can read/write in Russian in editors, browsers, e-mail
on a pure English, German, or even Japanese Windows 2000.
Obviously, you need to _activate_ Cyrillic support there -
in Control Panel/Regional Options/General mark "Cyrillic"
in the "Language Settings for the system" frame - but
it's not a change to OS itself such as MUI, etc.,it just
_adds_ Cyrillic support without making your Windows 'Russian'
in any way.
2) Second, MS Windows does NOT support iso-8859-5 for Russian, that
is when you see 'Russian' or 'Cyrillic' in fonts name or keyboard
mode it's a different encoding - "Windows(Cyrillic), code page 1251".
3) So to get iso-8859-5 text files you have 2 options:
a) simplest one - if you have Word 2000 or newer. It allows you
to type - on pure English system - any text - Russian or German
or Japanese - and then lets you _specify_ in what encoding you
want the document be places as Plain Text to .txt file.
All encodings are supported by Word, including iso-8859-5.
Same goes for opening a .TXT file in Word when you know that
the encoding of that file is different from System Code Page.
How to do it and why it works? Don't want to write the steps
here - may be you do NOT have Word 2000 or newer - so if you do:
- find "Unicode and Cyrillic: issues and solutions" section
on my site
- inside find Chapter 2 "Copy/Paste; Word and .TXT"
- see then "Word and .TXT" part of that page.
Â) Another way is to prepare a 'native' for MS Windows Russian
text - in Cyrillic(Windows-1251) encoding and then *convert* it
to iso-8859-5. That is, find a non-Unicode Plain Text editor
(i.e. it's not Wordpad nor Word nor Notepad)
that lets you choose a Russian font (f.e. Courier New(Cyrillic))
and type in Russian. I use
http://www.UltraEdit.com.
Type your text and then you can convert it to iso-8859-5
either in Clipboard or using 'source file' - 'target file'
mode. Both are available in CVT32 converter - see
"Encoding Conversion" section of my site.