Dec 15, 2009

Java Applet Chinese Font Settings

If you are using a English language Windows XP, the Java Applet might not display Chinese normally. The method to solve this:
1) Put one Chinese font file which is in C:\Windows\Fonts\ to $JAVA_ROOT/jre/lib/fonts/fallback/ , for example you choose SimSun
$JAVA_ROOT means JDK installation directory.

2) Open control pannel, click Java, under Java->Java Runtime Settings->View,
Add -Dfile.encoding=gbk in the Runtime Parameters.

It will be OK.

No comments: