File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes Servlet charset problem??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Servlet charset problem???" Watch "Servlet charset problem???" New topic

Servlet charset problem???

Jeppe Sommer
Ranch Hand

Joined: Jan 07, 2004
Posts: 270
From a jsp page I�m uploading text from a text field plus an image file to a servlet, where I store the data in a database. I use enctype="multipart/form-data" in my jsp page. I have problems with the chars, '�', '�', '�', which is shown as '?'.

I don�t have any problems with the charset on all the other pages, other than the multipart/form-data.

I have already tried to change the charset in my servlet to:


- but that doesn�t help at all. I have endeed tried to replace the chars, with HTML code:

- but that doesn�t help either. Can someone help me?
[ June 28, 2005: Message edited by: Jeppe Fjord ]
It is sorta covered in the JavaRanch Style Guide.
subject: Servlet charset problem???
Similar Threads
Trouble in handling Internationalization
XML output shown as plain text
Apache commons UTF-8 problem.
Soap turning non-ascii chars to garbage
utf-8 on actionform