請問big5碼與decmical編碼如何轉換? |
尚未結案
|
davwu
一般會員 ![]() ![]() 發表:13 回覆:12 積分:5 註冊:2003-04-08 發送簡訊給我 |
|
davwu
一般會員 ![]() ![]() 發表:13 回覆:12 積分:5 註冊:2003-04-08 發送簡訊給我 |
自己答題可得分嗎?
我已經得到答案了
==================================
unicode to 繁體-->
WideCharToMultiByte(950)
==================================
unicode to 簡體-->
WideCharToMultiByte(936)
==================================
繁體 to unicode-->
MultiByteToWideChar(950)
===================================
簡體 to unicode-->
MultiByteToWideChar(936)
===================================
繁體 to big5 -->
for i := 1 to length(itxt) do
result :=result inttoHex(ord(itxt[i]),2);
where itext is 繁體字元
===================================
big5 to 繁體 -->
dbcs :=char(word[1] word[2]) char(word[3] word[4]);
where word is big5 code
|
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |