From: Dean Harding (dean.harding@dload.com.au)
Date: Tue Aug 29 2006 - 23:37:08 CDT
> (Microsoft.VisualBasic.ChrW(System.Convert.ToInt32(hex, 6))
If you want to do the .NET way, just do:
string value = "3df";
char ch = (char) Convert.ToInt32(value, 16);
Now, because in .NET a char is actually a UTF-16 codepoint, you won't get
anything > U+FFFF. And also, this doesn't take into account unassigned or
invalid codepoints and stuff (unless you're getting your input data from the
Unicode database already)
But my question is, what are you going to do with it then? Most likely you
won't be able to DISPLAY most of those characters, unless you have the
correct fonts installed, so what are you actually trying to DO?
Dean.
This archive was generated by hypermail 2.1.5 : Tue Aug 29 2006 - 23:39:19 CDT