Convert from MUltilanguage 850 to Windows 1250

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
 
J

Jon Skeet [C# MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

convert to array of byte 3
Sort in dataSet 1
Binding int to textBox 2
Replace char in Table 2
SQL query on DataSet 1
ASP data forma 1
Constant Column in string format 2
Binding date to textBox 3

Top