H
headware
I'm reading in a file that contains unicode code point values spelled
out in plain text. An example would look like this:
"this is some \U+2205 text from the file"
What I need to do is be able to take any one of these unicode
codepoint strings and convert them to the actual unicode string value.
A single case would be something like this:
string s = s.Replace("\\U+2205", "\u2205");
That results in the the correct string value but, of course, it only
works for one code point. I need a solution that will work for any
code point. I can extract the value after the "\U+" but I don't know
what to do with it to get it into a regular C# string. Any ideas?
Thanks,
Dave
out in plain text. An example would look like this:
"this is some \U+2205 text from the file"
What I need to do is be able to take any one of these unicode
codepoint strings and convert them to the actual unicode string value.
A single case would be something like this:
string s = s.Replace("\\U+2205", "\u2205");
That results in the the correct string value but, of course, it only
works for one code point. I need a solution that will work for any
code point. I can extract the value after the "\U+" but I don't know
what to do with it to get it into a regular C# string. Any ideas?
Thanks,
Dave