P
Po
Hi,
I have a little piece of code which convert a Chinese(CP_950) string to
Unicode from a network stream.
Actually, it is the sample code which can be found everywhere.
Encoding big5 = Encoding.GetEncoding("big5");
UnicodeEncoding unicode = new UnicodeEncoding();
int nb = ns.Read(data, 0, 255);
System.Diagnostics.Debug.WriteLine("nb: " + nb);
byte[] bba = Encoding.Convert(big5, unicode, data, 0, nb);
reply = unicode.GetString(bba, 0, bba.Length);
System.Diagnostics.Debug.WriteLine("reply[" + reply.Length + "]: " +
reply);
It works fine on my Desktop PC but it failed in the Dopod 900 which running
WM5.
Any help ?
Po
I have a little piece of code which convert a Chinese(CP_950) string to
Unicode from a network stream.
Actually, it is the sample code which can be found everywhere.
Encoding big5 = Encoding.GetEncoding("big5");
UnicodeEncoding unicode = new UnicodeEncoding();
int nb = ns.Read(data, 0, 255);
System.Diagnostics.Debug.WriteLine("nb: " + nb);
byte[] bba = Encoding.Convert(big5, unicode, data, 0, nb);
reply = unicode.GetString(bba, 0, bba.Length);
System.Diagnostics.Debug.WriteLine("reply[" + reply.Length + "]: " +
reply);
It works fine on my Desktop PC but it failed in the Dopod 900 which running
WM5.
Any help ?
Po