So I have a string like Русское Имя how to represent it as real string with wcf textBox? And How to encode for example russian string inputed into textInput into UTF-8开发者_JAVA技巧?
To decode this and other HTML encoded strings, use HtmlDecode() like below:
System.Web.HttpUtility.HtmlDecode("Русское Имя")
This decodes to Русское Имя. As for UTF-8, just like bwreichle said, you can use:
Encoding.UTF8.GetBytes(@"Русское Имя")
加载中,请稍侯......
精彩评论