D
Davide Piras
Hello,
..NET Framework 2, C#, ASP.NET web application...
I have the string "öäü" and I need the ascii rapresentation in the format:
"\u00F6" stands fo "ö" and so on...
then later I need to convert again from the string "\u00F6....." to the
original one "öäü"
tried some paths but cannot make the encoders and classes of the System.Text
namespace working :-(
what is the simplest way to do something like that?
at this moment are converting by hand with this:
(char)Convert.ToInt32(m.Value.Replace("\\u", ""), 16)
that casts \u00F6 back to ö
but I think there should be a better way...
Thanks, regards, Davide.
..NET Framework 2, C#, ASP.NET web application...
I have the string "öäü" and I need the ascii rapresentation in the format:
"\u00F6" stands fo "ö" and so on...
then later I need to convert again from the string "\u00F6....." to the
original one "öäü"
tried some paths but cannot make the encoders and classes of the System.Text
namespace working :-(
what is the simplest way to do something like that?
at this moment are converting by hand with this:
(char)Convert.ToInt32(m.Value.Replace("\\u", ""), 16)
that casts \u00F6 back to ö
but I think there should be a better way...
Thanks, regards, Davide.