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

Jeevan Rao

Greenhorn

Posts: 2

posted 6 years ago

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.

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.

Retired horse trader.
Note: double-underline links may be advertisements automatically added by this site and are probably not endorsed by me.

Jeevan Rao

Greenhorn

Posts: 2

posted 6 years ago

Thank you very much. This issue is resolved. I am encoding with "UTF-16". Once again thank you very much for your help.