作者LPH66 ((short)(-15074))
看板Visual_Basic
标题Re: [VB6 ] BIG5码疑问
时间Fri Aug 8 17:00:30 2008
※ 引述《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