Here is a sample input: "\\u0434\\u0430\\u043C\\u043E"
and i want to convert this into readable text. I will appreciate if it can still have the accent characters too. The input can be actually longer than this but this can be used as a sample.
Yes i saw (http://www.joelonsoftware.com/articles/Unicode.html) and (How to print/store non-ASCII characters (unicode?)) but it doesn't answer my question so please don't label this as duplicate. I would appreciate to get a sample code in C#. I also tried HttpUtility.HtmlDecode() too but it doesn't actually decode it. Here is the code:
//this is coming from service call and its comming just like this.
var str="\\u0434\\u0430\\u043C\\u043E";
var decoded = HttpUtility.HtmlDecode(str); // this doesn't work. Its returning the string str as is.
As a side note: the following will work. But my input isn't in that shape.
//Although my input isn't in the following form, the following works. But my input isn't in this form.
var str2="\u0434\u0430\u043C\u043E";
var decoded = HttpUtility.HtmlDecode(str2);
How can i correctly decode a string like ""\u0434\u0430\u043C\u043E" to readable text.