且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何将unicode转换为可读的字符串?

更新时间:2023-02-14 11:36:22

不要读取字节,而是将其读取为字符串. .net字符串采用unicode.
Don''t read the bytes, read it as a string. .net Strings are in unicode.


Unicode始终可读,您只需要使用适当的控件即可读取Unicode.所有.NET和.NET控件均显示Unicode,并在内部使用其UTF-16编码.

参见:
http://msdn.microsoft.com/en-us/library/system.text. encoding.aspx [^ ],
http://unicode.org/ [ ^ ],
http://unicode.org/faq/utf_bom.html [
Unicode is always readable, you just need to use proper control to read Unicode. All the .NET and .NET controls do show Unicode and internally use its UTF-16 encoding.

See:
http://msdn.microsoft.com/en-us/library/system.text.encoding.aspx[^],
http://unicode.org/[^],
http://unicode.org/faq/utf_bom.html[^].

—SA