如何将Unicode转换成汉语

2025-03-01 23:57:39
推荐回答(2个)
回答1:

要看它用的是什么语言才好定。
例如百度贴吧用的是国标。
%C9%CF%BA%A3 就是 上海两字的国标码。
上=0xc9 和 0xcf
海=0xba 和 0xa3
用2进制输出:
fputc( (int)0xc9,fout);fputc( (int)0xcf,fout);
fputc( (int)0xba,fout);fputc( (int)0xa3,fout);
就可读出。

你给的码%E7%AC%AC%E4 。。超出了中文国标unicode码的数值范围。

正确范围的码可以用 HTML 码直接写,就能用 IE 读,例如:
unicode 上海: %4E%0A%6D%77


啊井x4e0a;
啊井x6d77;

把 啊 换 & 号
把 井 换 # 号

回答2:

IP地址欺骗与Unicode编码欺骗