【求助】unicode字符串中文部分转码
vb.net吧
全部回复
仅看楼主
level 14
有什么办法把一段unicode字符串中的中文部分还原成中文吗?
例:"This is \u82f9\u679c."转换成"This is 苹果."
[乖]
2016年06月18日 08点06分 1
level 11
我自己写的函数,核心代码是先把unicode从16位变32位,然后用chrw函数转换就可以了。
比如,chrw(convert.toint32("82f9",16))
2016年06月18日 09点06分 2
level 6
正则\\[^\\]+?\\取
2016年06月18日 11点06分 3
level 10
结合了一下楼上两位的方法,写了个示例
2016年06月18日 22点06分 4
[大拇指]经测试,确实好使,谢谢啊!
2016年06月20日 01点06分
1