views:

143

answers:

2
+1  Q: 

code page values

apart from 1252 what other code page values can be used with getencoding() in vb.net?

System.Text.Encoding.GetEncoding(1252).Getstring()

A: 

It depends on the platform. See Encoding.GetEncodings.

strager
+4  A: 

Well, any code page that's supported by your system. 437 is one of the old DOS code pages, for example, and 28591 is ISO-Latin-1.

Here's a list of lists of code pages from Microsoft, but you should use Encoding.GetEncodings to see what's available on your own machine. I suspect it's not comprehensive though - I'm pretty sure there's a code page for one of the EBCDIC encodings, and I can't see it listed there.

Generally though you should know what code page your incoming data is in, so you don't often need to know what other code pages are available.

Jon Skeet