views:

435

answers:

2

Hi

I have copied http://ja.wikipedia.org/wiki/メインページ url and pasted that url into a JTextField but it shows some squares( [][]...[].) instead of those chars "メインページ". How can I solve this problem so that the url is shown correctly?

Like this, see when I copy url (of any language) into this message box it is showing as it is, not as squares....

How can I achieve that?

Thanks

+1  A: 

You need to have the font installed on the computer that your app is running on. If this is an English version of windows (or any other non-Japanese version, i suppose), you may need to download and install the font. you can get MS Mincho here.

akf
+1  A: 

The Windows Java installer only installs English fonts (and no asian fonts) if it thinks this computer only speaks English.

Consider reinstalling the default JRE with a custom install where you install all fonts.

Thorbjørn Ravn Andersen