RE: Unicode characters List instead of hexadecimal equivalent

From: Dean Harding (
Date: Tue Aug 29 2006 - 23:37:08 CDT

  • Next message: Adisesha Neelaiahgari: "RE: Unicode characters List instead of hexadecimal equivalent"

    > (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?


    This archive was generated by hypermail 2.1.5 : Tue Aug 29 2006 - 23:39:19 CDT