|
-
May 24th, 2009, 09:18 PM
#1
Simple Question Unicode HexString to CharArray
Just like to say this is built in .Net and works automatically..
string encoded = "\u472A\u4F2C\u432E\u6430\u4032\u5034\u4536";
turns to a bunch of bytes like 472A,4F2C and results in a string
䜪伬䌮搰䀲倴䔶
unicode characters a bunch of chinese letters and boxes alright
sounds like my problem is solved right? but nope.. I want to be able to change these at will.. from a textbox..
so put inside textbox "\u472A\u4F2C\u432E\u6430\u4032\u5034\u4536" this.. without quotes
and I try
string encoded = encoded.Text;
what do I get? a bunch of crap.. like \u472a\u4F2C..
my question is how do I evaluate the data.. like make it compile at runtime like .NET does to string datatype.
I've searched all over google can't find jack.
must be possible.. without going threw the trouble of using a loop and buffering the input letter by letter.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|