Function GB2312ToUnicode(str) length = LenB(str) : out = "" For i = 1 To length c = AscB(MidB(str,i,1)) If c <= 127 Then out = out & Chr(c) Else i = i + 1 d = Hex(AscB(MidB(str,i,1))) c = "&H" & Hex(c) & d out = out & Chr(c) End If Next GB2312ToUnicode = out End Function