Hi all,
I have an application that reads data in from a text file and stores it in a
database. My problem is that there are some characters in the file that
aren't being handled properly. For instance, one of the characters has an
ASCII code of 150 (it looks like a dash '-'), when I'm debugging this
character is displayed as the square box that Windows uses for unsupported
characters and when it's copied to the database it's stored as '?'.
I've played with the encoding while reading the file but the default
encoding still works the best for all of the data. I can copy this
character to a simple texr editor like Notepad and it's displayed properly.
The problem seems to be that the .net character set used is OEM when what I
want is the ANSI character set. Can anyone help me with reading in all of
the characters in the file. Thanks in advance.
--Paul
I have an application that reads data in from a text file and stores it in a
database. My problem is that there are some characters in the file that
aren't being handled properly. For instance, one of the characters has an
ASCII code of 150 (it looks like a dash '-'), when I'm debugging this
character is displayed as the square box that Windows uses for unsupported
characters and when it's copied to the database it's stored as '?'.
I've played with the encoding while reading the file but the default
encoding still works the best for all of the data. I can copy this
character to a simple texr editor like Notepad and it's displayed properly.
The problem seems to be that the .net character set used is OEM when what I
want is the ANSI character set. Can anyone help me with reading in all of
the characters in the file. Thanks in advance.
--Paul
Comment