I wanna know how I could convert an appearance of the hex escape sequence "\uxxxx" (where x is a hex digit) to plaintext, i.e. "\\uxxxx" so I can print it somewhere. I tried
string convertedString = System.Text.RegularExpressions.Regex.Unescape("\u1234");
but the string gets some strange value. Same with Escape.
I tried something like
convertedString = ("\u1234").Replace("\u", "\\u");
but compiler tells me "Unrecognized escape sequence" because he expects 4 more digits.
Also not working:
string convertedString = ("\u1234").Replace(@"\u", @"\\u");
Hope somebody can help me. :)