I have a form, which will be submitted to Struts Action and will get processed and returns output.
However the input data has special characters like “Louvière”, if users submits the form, In the back end, Struts fetching this value as “La Louvi�re”.
How do i handle this situation as the input should accept specially Euro characters.
in the jsp page header I am encoding as
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
and form defined like
<s:form id="myform" action="myAction" method="POST">
By default the encoding equals the encoding of the document containing the
<form>element. Hence, either change the charset instruction of the document containing the<form>like soOr add the
accept-charsetattribute to the form element like so:The browser should then use the declared charset when submitting the POST request.
Sidenote, the Euro symbol (€) is not part of iso-8859-1 but of iso-8859-15.