locked
Change language/font of MessageDialog for CJK languages

    Question

  • Background: Unicode does not separate characters of Chinese (traditionals), Chinese (simplified) and Japanese. So it depends on the font if a Chinese or Japanese character is displayed for a certain Unicode code point. See http://en.wikipedia.org/wiki/Han_unification for more information.

    Usually it is easy: FrameworkElement has a property "Language" to set the correct language (see here). (Alternatively, you can choose a correct font).

    But how to set the language of a MessageDialog? It always displays the Japanese characters even if Chinese is set as primary langauge in Windows.

    Friday, March 27, 2015 11:25 AM

All replies

  • But how to set the language of a MessageDialog? It always displays the Japanese characters even if Chinese is set as primary langauge in Windows.

    Can you post your code here?


    Mark if helps

    Monday, March 30, 2015 10:38 AM
  • This code displays a MessageDialog with one Chinese/Japanese/Korean character:

    MessageDialog d = new MessageDialog("\u5203");
    await d.ShowAsync();
    

    Here you can take a look at how this character should be displayed depending on the language: http://en.wikipedia.org/wiki/Han_unification

    (look for "knife edge" in the Wikipeadia page to find it)

    On my 3 test computers, always the Japanese variant is displayed (although Chinese is set as primary language for Windows)

    Monday, March 30, 2015 5:27 PM
  • anybody?
    Friday, April 10, 2015 8:32 AM