Reputation: 8025
I have these strings:
\x22vi\x26#7879;t\\u003Cb\\u003E nam\\u003C\\/b\\u003E\x22
\x22vi\x26#7879;t\\u003Cb\\u003E nam net\\u003C\\/b\\u003E\x22
\x22vi\x26#7879;t\\u003Cb\\u003E b\x26#7843;n \x26#273;\x26#7891;\\u003C\\/b\\u003E\x22
\x22vi\x26#7879;t\\u003Cb\\u003E ti\x26#7871;n\\u003C\\/b\\u003E\x22
I get it from google autocompleter with keyword is việt. How to convert it to normal string by C#?, like this:
việt nam
việt nam net
việt nam bản đồ
việt tiến
Note: that strings can have unicode character. Thank for your help!
Upvotes: 1
Views: 3079
Reputation: 944
read this
Convert a Unicode string to an escaped ASCII string
http://konfabulator.wikia.com/wiki/Convert_HTML_entities
Upvotes: 2