Unicode in C#

  • Thread starter Thread starter julio
  • Start date Start date
J

julio

How do I display a Unicode character? I tried

TextBox1.Text = new string('\u266D',1);

and also

char c = '\u266D';
TextBox1.Text = c.ToString();

Neither works (it should display a "double flat", something like two 'b's,
one partially overlapping the other. I just get a rectangle.
Thnaks
 
Julio,

It seems like whatever font you are using doesn't support that
character. Try setting the font of the textbox to a font that you know
supports the character.
 
In C#, everything is working just fine. Just about any Unicode codepoint <
0xFFFF can be created the way you're doing it.

The problem (as Nicholas already pointed out) is that the font you're using
doesn't happen to suppor that character.

You can find more info about this here:
http://www.microsoft.com.nsatc.net/globaldev/DrIntl/FAQs/muifaq.mspx

Typically, I end up installing a fairly large set of fonts on my dev
machine, so I can see everything. This (for me) often includes the Far
Eastern support stuff...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top