Convert from MUltilanguage 850 to Windows 1250

  • Thread starter Thread starter PawelR
  • Start date Start date
P

PawelR

Hello group,
I've more text in dataSet as table in character set Multilanguage 850 - from
database on OS2/Warp (IBM system), I need save this text on computer with
windows with character set Windows 1250.
How convert text in the dataset to Win1250?

Thx PawelR
 
PawelR said:
I've more text in dataSet as table in character set Multilanguage 850 - from
database on OS2/Warp (IBM system), I need save this text on computer with
windows with character set Windows 1250.
How convert text in the dataset to Win1250?

If you've got it in your table as a string already, it isn't "in" any
particular encoding. Encodings apply to byte sequences - characters in
..NET are all just Unicode.

However, to write the string to a file, you'll want to specify the
appropriate Encoding object - in this case you can just use
Encoding.GetEncoding(1250).

See http://www.pobox.com/~skeet/csharp/unicode.html for more
information.
 
Back
Top