I have an scraped string with this format:
Un peque\u00F1o jard\u00EDn
And I need this:
Un pequeño jardín
The web page have a meta tag for chaset=uft-8:
<meta http-equiv="content-type" content="text/html; charset=utf-8">
I try to resolve with:
// Original text after regex capture
string text = "Un peque\\u00F1o jard\\u00EDn";
// Result 1: Un peque\\u00F1o jard\\u00EDn
string res1 =Encoding.UTF8.GetString(Encoding.UTF8.GetBytes(text));
// Result 2: Un peque\\u00F1o jard\\u00EDn
string res2 = System.Net.WebUtility.HtmlDecode(text);
I thing that this encodign is BigEndian 16, I tried with Encoding.BigEndianUnicode, and other encodings with unexpected results.
How can I decode to "Un pequeño jardín"?
Thanks for your time!