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

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
 
G

Guest

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
 
B

Boris Nienke

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
 
G

Guest

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top