1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| byte[] big5Bytes = new byte[2];
string big5Code = "A2AF";
big5Bytes[0] = (byte)Convert.ToInt32(big5Code.Substring(0, 2), 16);
big5Bytes[1] = (byte)Convert.ToInt32(big5Code.Substring(2, 2), 16);
Encoding big5 = Encoding.GetEncoding(950);
string result = big5.GetString(big5Bytes);
|