询问者
用Microsoft.VisualBasic.Strings.StrConv()转换繁体字出现问题

问题
全部回复
-
Hi niexuchina,
感谢在MSDN论坛发帖。
unicode编码是完全可以支持各国语言,unicode支持大约是65536个字符。
unicode只是规定了16进制的数字,代表什么字符,但是没有规定在内存中存放方式。所以出现了utf_8和utf_16大端和小端。
你显示的是繁体字,应该用的是台湾定义的编码,但是显示的是简体编码(国标码)。 问题应该是编码不同。
建议统一使用unicode编码方式。 如果想在VB.NET中使用unicode编码,可以参考下面这个文章。
https://www.codeproject.com/Articles/885262/Reading-and-writing-Unicode-data-in-NET
Best Regards,
Hart
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
-
StrConv只是简单的unicode转码,没有语义分析,所以是不正确的。.Net安装附加pack来实现此功能,这个pack不是“多国语言包”,是“国际化扩展包”。
https://www.microsoft.com/zh-cn/download/details.aspx?id=18970
使用方法:http://www.cnblogs.com/yazdao/archive/2011/06/04/2072488.html
- 已建议为答案 Hart WangModerator 2017年4月3日 8:22