Shawn
Mon, 25 Oct 2004 23:03:16 -0700
Hello,
When using ENCTYPE="multipart/form-data" in a form on a jsp page, text
sent ignores the SetCharacterEncodingFilter which is calling
request.setCharacterEncoding("UTF-8");
I thought about getting parameter values by using
String field = request.getParameter("whatever");
field=new String(field.getBytes
("UTF-8"));
Does this seem a reasonable approach or is should the
SetCharacterEncodingFilter *really* be setting the charEncoding?
I don't want to be creating a new string for every parameter unless
necessary.
When ENCTYPE is not set, all works as expected.
This problem is seen on Tomcat 5.0.28, but not 4.x versions. I
understand something changed around 5.0.27 for UTF-8 handeling but am
not sure if that is realated.
--
Shawn <[EMAIL PROTECTED]>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]