How to put Unicode characters in System.Windows.Forms.Button in C #?

In Visual Studio 2008, the C # WinForms project has a button in the form. In the property view, the Font property is set to Arial Unicode MS.

What do I need to put in the "Text" property, so I get the Unicode character \ u0D15 displayed on the button?

When I put \ u0D15 in the Text property, the button displays six characters "\ u0D15" instead of a single Unicode character.

In the following PDF file, you can see the unicode character for \ u0D15: http://unicode.org/charts/PDF/U0D00.pdf

+4
c # visual-studio unicode character
source share
2 answers

You do not need to avoid unicode characters in strings, since C # is essentially unicode. Just put the unicode characters as they are on the line. For example:

button1.Text = "日本"; 
+7
source share

One possible way is to run "charmap" and copypaste from there or copy it from another location.

0
source share

All Articles