I have a Unicode string from a text file such that. And I want to display the real character.
For example:
\u8ba1\u7b97\u673a\u2022\u7f51\u7edc\u2022\u6280\u672f\u7c7b
When read this string from text file, using StreamReader.ReadToLine()
, it escape the \
to '\\'
such as "\\u8ba1"
, which is not wanted.
It will display the Unicode string same as from text. Which I want is to display the real character.
- How can change the
"\\u8ba1"
to"\u8ba1"
in the result string. - Or should use another Reader to read the string?