Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Servlets character encoding

843840Nov 19 2001 — edited Nov 26 2001
JRE 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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 24 2001
Added on Nov 19 2001
15 comments
402 views