How can a servlet handle form data containing non-ASCII characters?

  • Convert the data to ASCII
  • Set the character encoding using setCharacterEncoding()
  • This is not possible
  • Use the getEncoding()
To handle form data containing non-ASCII characters, you should set the character encoding using the setCharacterEncoding(String encoding) method of the HttpServletRequest object.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *