Re: [VB6 ] BIG5碼疑問

看板Visual_Basic作者 ((short)(-15074))時間15年前 (2008/08/08 17:00), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/2 (看更多)
※ 引述《williewillie (williewillie)》之銘言: : 我的設定是從資料庫撈big5的字碼出來 : EX: : A440轉換後是"一" : A441轉換後是"乙" : Dim instr as string : instr="A440" : 我用text1.text=Chr(HexS2Dec(instr))來轉換 : HexS2Dec轉換A440後得42048 : CHR(42048)可以正常顯示出"一"這個字 : 但是遇到某些BIG5碼時 : 卻只會顯示出 " ? " : 請問這是怎麼回事? : 沒有辦法解決嗎? 因為big5只在某些範圍才有字 第一個byte(前兩個hex)是在 &H81到&HFE 第二個byte(後兩個hex)是在 &H40到&H7E 或 &HA1到&HFE 不在這個範圍的就沒有字 -- 'Oh, Harry, dont't you see?' Hermione breathed. 'If she could have done one thing to make absolutely sure that every single person in this school will read your interview, it was banning it!' ---'Harry Potter and the order of the phoenix', P513 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 122.121.18.80
文章代碼(AID): #18d0imwp (Visual_Basic)
文章代碼(AID): #18d0imwp (Visual_Basic)