Localization while reading files

Vadim

New member
Joined
Aug 5, 2004
Messages
1
Hello!

Im trying to read file in specific codepage windows-125x. For this purpose I using StreamReader class, but unfortunately I didnt find any way to say that file have specific encoding. In StreamReader constructor its possible to pass Encoding object, but Encoding object itself have no set properties nor some argument in constructor to pass codepage explicitly.

In the other hand I tested the App.config file and found that even if codepage in xml header change to windows-125x localized symbols are read absolutely correct. Does anybody know how to write correct code for localized file reading.

All approaches are welcome! Thanks in advance.

Vadim
 
Back
Top