JSP Content-TYpe not working
by mfoley from LinuxQuestions.org on (#5721J)
I'm using Firefox in debug mode (F12). I have a .jsp program in which I specify:
Code:<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>But whenever I submit any form I get a console error:
Code:A form was submitted in the windows-1252 encoding which cannot encode all Unicode characters, so user input may get corrupted. To avoid this problem, the page should be changed so that the form is submitted in the UTF-8 encoding either by changing the encoding of the page itself to UTF-8 or by specifying accept-charset=utf-8 on the form element.I've also tried
Code:<%@ page contentType="text/html;encoding=UTF-8" %>Same error. This happens on pretty much all of the JSP files I have which contain forms.
Why?


Code:<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>But whenever I submit any form I get a console error:
Code:A form was submitted in the windows-1252 encoding which cannot encode all Unicode characters, so user input may get corrupted. To avoid this problem, the page should be changed so that the form is submitted in the UTF-8 encoding either by changing the encoding of the page itself to UTF-8 or by specifying accept-charset=utf-8 on the form element.I've also tried
Code:<%@ page contentType="text/html;encoding=UTF-8" %>Same error. This happens on pretty much all of the JSP files I have which contain forms.
Why?