ISO/IEC 10646标准和C#.Net中的UTF-16 [英] ISO/IEC 10646 standard and UTF-16 in c# .Net
本文介绍了ISO/IEC 10646标准和C#.Net中的UTF-16的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想通过ISO/IEC 10646标准和c#.Net中的UTF-16转换URDU文本:
例如:
http://sms.24cro.com/op_1_4_en.htm [
I want to convert the URDU text via ISO/IEC 10646 standard and UTF-16 in c# .Net:
For Example:
http://sms.24cro.com/op_1_4_en.htm[^]
When I paste URDU text in first text box, it gives 100% right result in second text box. This web page converts it properly, but I am not able to do the same in .Net code.
推荐答案
您可能正在尝试显示使用不支持所需字符的字体显示文字-或您使用的编码不正确.
看看 Encoding.GetEncoding [
It''s likely that you are trying to display the text using a font that does not support the required characters - or that you are not using the correct encoding.
Have a look at Encoding.GetEncoding[^].
Best regards
Espen Harlinn
这篇关于ISO/IEC 10646标准和C#.Net中的UTF-16的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文