Groups | Blog | Home
all groups > vb.net > march 2004 >

vb.net : System.Text.Encoding (Chinese Character BIG5-->GB Conversion)


John Smith
3/21/2004 3:12:27 PM
namespace:
System.Text.Encoding

description:
BIG5 -> Unicode -> GB2312

step details:
1. MyUnicodeString =
System.Text.Encoding.GetEncoding("BIG5").GetString(My_BIG5_ByteArray)

2. My_GB2312_ByteArray =
System.Text.Encoding.GetEncoding("GB2312").GetBytes(MyUnicodeString)

In the only one text I found in MSDN they state that some encodings are
not supported by some systems, so I don't know if "BIG5" and "GB2312"
will work in your computer.

If you just wish to translate traditional chars to simplified:
MySimplifiedUnicodeString =
StrConv(MyTraditionalUnicodeString,VbStrConv.SimplifiedChinese)


[quoted text, click to view]
norton
3/21/2004 10:40:00 PM
Dear All,

May i know how can i make a conversion between BIG5 and GB encoding?

Thx in advance!

norton
3/22/2004 2:31:46 AM
Thx John, it works and that's great!


"John Smith" <user@example.net> ???
news:ufPMub1DEHA.684@tk2msftngp13.phx.gbl ???...
[quoted text, click to view]

AddThis Social Bookmark Button