Hi, everybody. I've some doubts about html form charset encoding. I
will be glad if someone could answer questions above.
1 ) We have jsp files with directive %@ page language=java
pageEncoding=utf-8 contentType=text/html;charset=utf-8 %
and some classes with the following working code :
But with this approach, all web apps running under the same JVM will use
this encoding. We want to avoid this...
Edson Alves Pereira wrote:
The best way to solve that is to set -Dfile.encoding=ISO-8859-1 in
JAVA_OPTS, with this you ensure that your JVM is using the encoding that you
:
byte[ ]b = request.getParameter( MyParam ).getBytes(
UTF-8 );
return new String( b ); //To use default encoding:
return new String( b, UTF-8 ); //Some different:
}
--
De: Daniel H A Lima[SMTP:[EMAIL PROTECTED]
Responder: Tomcat
Anton Tagunov wrote:
Hello, Lima!
Hi, Anton.
lccb I've found a message (at
lccb http://w6.metronet.com/~wjm/tomcat/2001/Mar/msg00547.html) :
lccb Tomcat follows the HTML standard,
Hmm.., to me it looks like a browser issue, not Tomcat.
Hence its a bit OT here, but still we have started the