I have a data source that contains a \u2265
, which is the greater or equal sign appearing as a single character just like this: ≥
However when the data reaches my application it comes in as \\u2265
.
I'm not concerned right now with why the extra \
is occurring.
Instead I just want to be able to convert the \\u2265
to a \u2265
inside my application.
I have tried various string manipulations such as these, and they either had syntax problems, or simply didn't work:
disp = dataSource.Replace('\\', '\');
disp = dataSource.Replace("\\", "\");
and
int x = dataSource.IndexOf("\\u");
disp = dataSource.Substring(0, x) + dataSource.Substring(x+1);
Part of the problem with the Substring technique is that \\
is being seen as a single character.