DOS codepage 866 problem (Russian OEM)

Display customization and font issues

DOS codepage 866 problem (Russian OEM)

Postby alexo » Tue Jan 27, 2009 3:24 pm

Hello,

I am trying to view a text file that was written in DOS codepage 866

I tried:
View / Set Code Page... / 866 (OEM - Russian)
View / Set Font... / Terminal OEM-DOS

I still see garbage.

Please help.
User avatar
alexo
Newbie
 
Posts: 4
Joined: Thu Feb 02, 2006 12:00 am

Re: DOS codepage 866 problem (Russian OEM)

Postby Mofi » Wed Jan 28, 2009 3:09 am

I suggest to use font Courier New and switch to OEM Character Set. If you can't see that menu item in menu View, see Manual customization of OEM Character Set command for help on how to add this command to the menu or toolbar.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4058
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: DOS codepage 866 problem (Russian OEM)

Postby alexo » Wed Jan 28, 2009 12:52 pm

Thank you.
I tried it and got different garbage.
User avatar
alexo
Newbie
 
Posts: 4
Joined: Thu Feb 02, 2006 12:00 am

Re: DOS codepage 866 problem (Russian OEM)

Postby Mofi » Thu Jan 29, 2009 3:58 am

Well, that's bad. View - Set Code Page is only for specifying the code page used for conversion from Unicode to ASCII/ANSI and vice versa (and local specific sorts). It has no influence on the glyphs used for displaying the bytes in an ASCII/ANSI file as characters. Only the selected font and the selected script is responsible for the display of the bytes as characters. So you need a font which supports DOS codepage 866.

Or you try following: After selecting the codepage use File - Conversions - ASCII to Unicode to convert your file to Unicode. This character set contains nearly all characters of all languages. So you should see now the correct characters. When you are finished with editing, convert the file back to ASCII and save it.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4058
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: DOS codepage 866 problem (Russian OEM)

Postby alexo » Thu Jan 29, 2009 11:40 am

Thank you, that worked.
User avatar
alexo
Newbie
 
Posts: 4
Joined: Thu Feb 02, 2006 12:00 am


Return to Editor Display