Mono Cannot Run Chinese Text in WindowsForms Text Box

I need some Chinese language in the form, but running Linux with Mono fails. Any tips? Example:

// works OK in windows and Linux same text.
Console.WriteLine( "Test  中国 的" );

// works OK in windows fails in Linux (renders "Test  [][][][]")
MessageBox.Show("Test  中国 的");

// works OK in windows fails in Linux (renders "Test  [][][][]")
Textbox1.Text="Test  中国 的"
+4
source share
1 answer

First, make sure you have a font set containing Chinese characters. Then try setting your var environment LANGon zh_CN.utf-8and see if it solves the problem.

0
source

Source: https://habr.com/ru/post/1569306/


All Articles