Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What is the encoding I should to get the polish characters correctly from request?

 
Jeevan Rao
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using doPost() method in my servlet. When I am getting the input stream from request the polish characters are being corrupted like "?". Can some one please help me to resolve this issue. Do I need to pass any encoding, if yes what is it? I have tried with ISO-8859-1 and UTF-8.

Here in my application we need to support english, german and polish characters.
 
James Sabre
Ranch Hand
Posts: 781
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should use the encoding as defined in the Content-Encoding header send with the POST. Whatever is performing the POST should make sure the Content-Encoding header is set to a value that guarantees that all the Polish characters can be encoded correctly.



 
Jeevan Rao
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much. This issue is resolved. I am encoding with "UTF-16". Once again thank you very much for your help.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic