G
Guest
This may not be a problem in CF, but I'm working on CF so I just post here.
I have a program needs to read some text file created with double byte
characters, I have try using the streamreader as usual, but it cause problem
no matter which encoding system is used (I can only find: ASCII,
BigEndianUnicode, Unicode, UTF7 and UTF8), those double byte characters has
been converted.
I also try to use binary reader to read the file, it can read all single
bytes correctly, but I have problem to put these characters into a string, as
some of them are single byte characters and some of them are double, it may
need to combine the double byte characters by myself.
According to the MSDN, it seems that there has an option of DBCS for some
character functions (eg., Chr, ChrW), I want to know if there has any option
to read the whole file into a string using DBCS encoding.
Thanks in advance!
I have a program needs to read some text file created with double byte
characters, I have try using the streamreader as usual, but it cause problem
no matter which encoding system is used (I can only find: ASCII,
BigEndianUnicode, Unicode, UTF7 and UTF8), those double byte characters has
been converted.
I also try to use binary reader to read the file, it can read all single
bytes correctly, but I have problem to put these characters into a string, as
some of them are single byte characters and some of them are double, it may
need to combine the double byte characters by myself.
According to the MSDN, it seems that there has an option of DBCS for some
character functions (eg., Chr, ChrW), I want to know if there has any option
to read the whole file into a string using DBCS encoding.
Thanks in advance!