• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet charset problem???

 
Jeppe Sommer
Ranch Hand
Posts: 270
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:

response.setContentType("text/html;charset=UTF8");
response.setContentType("text/html;charset=iso-8859-1");

- 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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic