Servlets character encoding
843840Nov 19 2001 — edited Nov 26 2001JRE 1.3.1_01a+JBoss 2.4.3+Tomcat 3.2.3:
My servlet does (in this order, junk lines cut for readability):
..
response.setContentType("text/html; charset=windows-1250");
..
out.println("these are windows-1250 or iso-8859-2 special (accented) characters");
..
When running this servlet I see ? instead of some characters. I tried switching setContentType to other codepages but still getting similar (wrong) results.
JSPs on the same setup do not work either but if I display bean (EJB) properties with special character they are displayed correctly.
Please, help... looks like a bug but cannot find it in the database.