汉字GB2312与UTF8转换问题
请教:编码“狐友论坛”应该是什么编码,如何转换成 “狐友论坛”?
如果对应UTF8, 狐 应该是 %E7%8B%90
如果对应GB2312,狐 应该是 BAFC
那么x72D0是?
转换网址是 https://utf8.
狐友论坛
CLEAR lc = "狐友论坛" *lc = "请将您要转换的汉字内容粘贴在这里。" ALINES(la, lc, 4, ";") FOR ln = 1 TO ALEN(la, 1) lc1 = SUBSTR(la[ln], 4) lc2 = RIGHT(lc1, 2) + LEFT(lc1, 2) ?? STRCONV(STRCONV(lc2,16),6) ENDFOR
[此贴子已经被作者于2023-2-9 18:00编辑过]
* UNICODE编码转换为汉字 CLEAR lc = '狐友论坛' &&"狐友论坛" ALINES(la, lc, 4, ";") FOR ln = 1 TO ALEN(la, 1) lc1 = SUBSTR(la[ln], 4) lc2 = RIGHT(lc1, 2) + LEFT(lc1, 2) ?? STRCONV(STRCONV(lc2,16),6) ENDFOR
[此贴子已经被作者于2023-2-9 20:09编辑过]