A common NLS problem with potential solutions.
- Why do I see a square box or ??? (question marks) in the SDK components?
- This effect is caused mainly because Java™ is
not able to find the correct font file to display the character. If
a Korean character should be displayed, the system should be using
the Korean locale, so that Java can
take the correct font file. If you are seeing boxes or queries, check
the following:
For AWT components:
- Check your locale with locale.
- To change the locale, export LANG=zh_TW (for
example)
- If this still does not work, try to log in with the required language.
For Swing components:
- Check your locale with locale
- To change the locale, export LANG=zh_TW (for
example)
- If you know which font you have used in your application, such
as serif, try to get the corresponding physical font by looking in
the fontpath. If the font file is missing, try adding it there.
- Characters displayed in the console but not in the SDK Components
and vice versa (AIX®).
- Characters that should be displayed in the console are handled
by the native operating system. Thus, if the characters are not displayed
in the console, in AIX use the xlfd <physical
font name> command to check whether the system can recognize
the character or not.