Re: [VB6 ] BIG5碼疑問
※ 引述《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
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):