IE prints correctly
Umm ...
You give less details ... anyway , if you can enter Chinese characters in your browser, but getting garbage at the output of the applet means that your Internet browser supports Chinese, but your applet does not ;
I assume that you should look closer to the JRE encoding settings for client machines, because by default this may not support Chinese encoding, so maybe your applet should have some manual localization control ...
A. I can advise you to go deeper into the Locale user language settings
I suspect file.encoding is a problem if you look at my own answers below. I could not find how to set the encoding though
B. You can use static code like this to set a property (put it at the very beginning of your applet code)
static { System.setProperty("file.encoding", "UTF-8"); }
FROM.
When I put an odd number of non-English characters (ex: Chinese), the chrome browser prints the last character in the question mark.
and...
the encoding is ms949, and the jre version is 1.7.0_17
... the concept is rather strange: S If you have chrome with support for Korean letters, and this is ms949 as the default encoding for your computer, but at the same time you want your applet to support utf-8 and output Korean characters correctly from JS back to your ms494 secure web page. I suspect you are encountering some kind of incompatible% P coding
So first of all, I recommend making your utf-8 applet support web page instead of the standard ms494, because I assume that the applet and its cp (s) web page may be incompatible: S
Report if this helped
source share