How to display both Chinese and English in the same textbox?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I wrote a program with C# in which I need to read lines from a file, which contains both English and Chinese characters, and then display the lines in a textbox. But the Chinese characters are not displayed properly. But if I set Encoding.UTF8 for my streamReader, the textbox display nothing!

Should I read the file as byte or is there any work around?

p.s. I have Chinese Character supported in my testing PDA, th eproblem should during to the encoding process.

Kempton
 
My problem is there are no GB2312 and Big5 encoding that I can selected from the "Encoding" class of c#. I can only use one of ASCII, Unicode, UTF7 and UTF8.

I tried Unicode and UTF8 but none of them work.

Any other suggestions?

Kempton
 
p.s. I have Chinese Character supported in my testing PDA, th eproblem
should during to the encoding process.

my question is: how have you added chinese character support? Or do you
have chinese WindowsCE installed?

Boris
 
I installed a program called "CE Star" that support Chinese characters. And it works since my application can display hardcoded Chinese Characters in combo boxes.
 
Back
Top