How to read EBCDIC data with a non standard codepage, and not mess up numbers?
问题 Here is one for the old(er) hands :-) I'm reading a binary dump from a mainframe DB2 table. The table has varchar, char, smallint, integer and float columns. To make it interesting, the DB2 uses code page 424 (Hebrew). I need my code to be codepage independent. So I open the file with a streamreader using System.Text.Encoding like so: Dim encoding As System.Text.Encoding = System.Text.Encoding.GetEncoding(20424) Dim sr As New StreamReader(item.Key, encoding) and proceed to read the VARCHAR