G
Guest
Hello,
I am playing a little with Encoding, and I have what is possibly (forgive
me) a newbie-type question.
I have a function that takes a string and a codepage (based upon the basic
MSDN help - look for "Using Unicode Encoding").
Anyway, I want to pass the contents of a textbox "as is", but always get a
literal string. Using the example from MSDN, say I want to pass in this
string:
"\u307b,\u308b,\u305a,\u3042,\u306d"
If I pass in Textbox.Text, I get
@"\u307b,\u308b,\u305a,\u3042,\u306d", which is not what I want.
In other words, instead of "Unicode character 307b, unicode 308b", etc., I
get "slash u three..."
Thanks,
pagates
I am playing a little with Encoding, and I have what is possibly (forgive
me) a newbie-type question.
I have a function that takes a string and a codepage (based upon the basic
MSDN help - look for "Using Unicode Encoding").
Anyway, I want to pass the contents of a textbox "as is", but always get a
literal string. Using the example from MSDN, say I want to pass in this
string:
"\u307b,\u308b,\u305a,\u3042,\u306d"
If I pass in Textbox.Text, I get
@"\u307b,\u308b,\u305a,\u3042,\u306d", which is not what I want.
In other words, instead of "Unicode character 307b, unicode 308b", etc., I
get "slash u three..."
Thanks,
pagates