I have a problem with encoding in a java applet. When I run it in NetBeans, the Russian characters in the applet are fine. No coding issues. But when I launch the same applet through the browser, my Russian characters are displayed as squares (encoding problem).
Where is the problem?
I have Russian translations in .properties files that are UTF-8 encoded. I also tried converting them to UTF-8 using
value = new String(bundle.getString(cLabel).getBytes("ISO-8859-1"), "UTF8");
Some ideas?
source share