Cannot display multibyte string on MonoDevelop Mac OS X

The problem is this:

Console.WriteLine ("あ"); 

This will result in the following output in the Application Exit window:

 ? 

How to display "あ" instead of "?"? in the application output window.

I made sure of the following things:

  • Source Code Encoding - UTF-8
  • I chose the Japanese Osaka Regular-Mono font set (Preferences> General> Font)
  • Executing exe from the terminal, "あ" is displayed correctly in the terminal window.
  • In Ubuntu MonoDevelop, "あ" displays correctly in the "Exit Application" window

Wednesdays:

  • MonoDevelop 2.2.2
  • Mono 2.6.4
  • Mac OS X 10.6.3
+1
source share
1 answer

The problem is the Mac version of the Pango library that MonoDevelop uses to render fonts does not currently support font backups for missing glyphs. Typically, if Japanese characters are not available in the font, rendering should return to the glyph from the default Japanese font.

MonoDevelop 2.4 Beta 1 supports custom font settings for output pads, so as a workaround you can set Okasa as a font for output pads.

0
source

All Articles