-
Dec 16th, 2009, 05:44 AM
#1
Thread Starter
Frenzied Member
Convert.ToChar(0x1F12D)
Hi All,
I'm trying to get a certain unicode character. it is CD with a circle around it. it seems to exist in some online unicode libraries (which I've used to create other characters just fine) but this one throws an error.
Convert.ToChar(0x1F12D)
or
Convert.ToChar(127277)
apparently this is an overflow, no character can exist at that number, according to .NET
As I understand it, .NET is UTF8 by default which I figure would limit it to 65536. So clearly the character i'm after must be a UTF32 so I tried the following to ensure it knew I wanted UTF32
System.Text.UTF32Encoding.UTF32.GetChars(System.BitConverter.GetBytes(127277))[0].ToString();
No error, but the character that gets returned doesn't get displayed it's just blank, does this just mean my Font is not UTF32 capable? what fonts are? I thought Arial was. Would I need to install a special font on my machine to display it? or is there something else I'm missing here?
Cheers
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
|