C # Button Symbols Unicode Text

C # doesn't want to put Unicode characters on buttons. If I put \ u2129 in the text attribute of the button, the button will display the \ u2129 character, not the Unicode character (for example, I selected 2129 because I could see it in the current current font on the machine).

I saw this question before, the text of the link , but there is no answer to the question, I just walked around. I work on applications that work all over the world, and I don’t want to install all the fonts, moreover, I don’t want to; I have many that I doubt that the machine I work on has enough disk space. Our foreign agents sales are supplied with Unicode character characters. Is there another way with this?

As an aside, (curiosity), why is it not working?

+6
c # button unicode winforms
source share
4 answers

Problem:

  • C # will allow you to embed Unicode, for example button1.Text = "Hello \u2129"; , no problem
  • but the designer of Visual Studio Forms does not recognize "\ u2129" as something special. By design.

So, just paste “℩” into the “Properties” window or use the code.

+11
source share

Change the "Font" button to "Font" (From google: Arial Unicode MS), which supports "u2129". It can help you.

+1
source share

I tried to include a security character (\ u00a9) in the form header. Using escape characters or changing fonts did not work for me. I just copied the character from a text editor.

+1
source share

Did you try to enter characters manually? Also, have you tried using a literal string with @ "blahblahblah"?

0
source share

All Articles