|
发表于 8-10-2016 12:44 PM
|
显示全部楼层
可能你的中文字是用ISO8859_1或gbk编码。可试试查找中文的ISO8859_1或gbk的编码?
可使用这个工具 http://string-functions.com/encodedecode.aspx
例子: 中文, encode: utf-8, decode: gb2312, 找"涓?枃"
我不肯定你的input是用什么encode, 我想更多人可能使用中文输入法的utf-8或gb2312。然后你把它们换成回来的字符像iso8859_1 or gb2312。
可试试不同的encode/decode:
1) encode: utf-8, decode: gb2312
2) encode: gb2312, decode: ISO8859_1 |
|