MSDOS OEM to ANSI Text File codepage conversion

  • Thread starter Philip M. Fleischmann
  • Start date
P

Philip M. Fleischmann

Hi,

i have to convert raw MSDOS-OEM-character set text files (codepage 430) to
standard windows ANSI character set for file I/O in C# (batch conversion).
Can anyone help me how this can be done?

Philip

--
esz Elektronik-Service GmbH
Dipl.-Ing. Philip M. Fleischmann
Technische Leitung - CTO
Max-Planck-Str. 16
82223 Eichenau
Phone: +49-8141-88887-39
Fax: +49-8141-88887-77
e-Mail: (e-mail address removed)
http://www.esz-gmbh.de
 
J

Jon Skeet [C# MVP]

Philip M. Fleischmann said:
i have to convert raw MSDOS-OEM-character set text files (codepage 430) to
standard windows ANSI character set for file I/O in C# (batch conversion).
Can anyone help me how this can be done?

Have a look at http://www.pobox.com/~skeet/csharp/unicode.html

Near the bottom of the page is a program which converts a file from
UTF-8 to UCS-2, but it would be trivial to change it to go from any
other encoding to another.
 
Top