My imported text contains several Unicode escape sequences
\u0092 \u0093 \u0094 \u0095 \u0096
Sample text:
string str = " Canadian Equity Funds may also invest in or use derivative instruments as described in “Investment Strategies – Use of Derivative Instruments" ";
Example c# text:
may also invest in or use derivative instruments as described in \u0093Investment Strategies \u0096 Use of Derivative Instruments\u0094."
I tried using this
Regex rx = new Regex(@"\\[uU]([0-9A-F]{4})");
var newString = rx.Replace(input, match =>
((char)Int32.Parse(match.Value.Substring(2), NumberStyles.HexNumber)).ToString());
I get exactly the same string.
I tried about every way I could to convert these to actual text, but to no avail. What am I supposed to do with them?