K
kaede
Hi all,
I am new to C# and currently writing a Nntp client to read article
from a chinese newsgroup. I am curious how to decode the chinese
character using streamreader and display it properly on Win2K and
WinXP?
I have tried the following:
// send XOVER commands to get the header XOVER 1234-1234
// read the header (subject, from, date, arthur)
Streamreader sr = new Streamreader(nntpStream, Encoding.Default); //
1
string str = sr.ReadLine();
listbox.Item.Add(str);
the output of 3 will shows some wierd characters. I tried changing the
encoding to UTF7/UTF8/Unicode, on both win2k and winXP, it is still
showing wierd characters.
Can anyone show me how to read and decode and display the chinese
character properly? Thanks
Kaede
I am new to C# and currently writing a Nntp client to read article
from a chinese newsgroup. I am curious how to decode the chinese
character using streamreader and display it properly on Win2K and
WinXP?
I have tried the following:
// send XOVER commands to get the header XOVER 1234-1234
// read the header (subject, from, date, arthur)
Streamreader sr = new Streamreader(nntpStream, Encoding.Default); //
1
string str = sr.ReadLine();
listbox.Item.Add(str);
the output of 3 will shows some wierd characters. I tried changing the
encoding to UTF7/UTF8/Unicode, on both win2k and winXP, it is still
showing wierd characters.
Can anyone show me how to read and decode and display the chinese
character properly? Thanks
Kaede