taylor 2004/07/19 22:53:20
Modified: portal/src/java/org/apache/jetspeed/engine/servlet
ServletRequestImpl.java
Log:
patch from Shinsuke Sugaya
http://nagoya.apache.org/jira/browse/JS2-96
CVS: ----------------------------------------------------------------------
CVS: PR:
CVS: If this change addresses a PR in the problem report tracking
CVS: database, then enter the PR number(s) here.
CVS: Obtained from:
CVS: If this change has been taken from another system, such as NCSA,
CVS: then name the system in this line, otherwise delete it.
CVS: Submitted by:
CVS: If this code has been contributed to Apache by someone else; i.e.,
CVS: they sent us a patch or a new module, then include their name/email
CVS: address here. If this is your work then delete this line.
CVS: Reviewed by:
CVS: If we are doing pre-commit code reviews and someone else has
CVS: reviewed your changes, include their name(s) here.
CVS: If you have not had it reviewed then delete this line.
Revision Changes Path
1.18 +17 -1
jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/engine/servlet/ServletRequestImpl.java
Index: ServletRequestImpl.java
===================================================================
RCS file:
/home/cvs/jakarta-jetspeed-2/portal/src/java/org/apache/jetspeed/engine/servlet/ServletRequestImpl.java,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -r1.17 -r1.18
--- ServletRequestImpl.java 30 May 2004 15:17:28 -0000 1.17
+++ ServletRequestImpl.java 20 Jul 2004 05:53:20 -0000 1.18
@@ -15,6 +15,7 @@
*/
package org.apache.jetspeed.engine.servlet;
+import java.io.UnsupportedEncodingException;
import java.util.Collections;
import java.util.Enumeration;
import java.util.HashMap;
@@ -121,6 +122,21 @@
String[] paramValues = (String[])
super.getParameterValues(paramName);
String[] values = (String[]) portletParameters.get(paramName);
+ if (getCharacterEncoding() != null)
+ {
+ for (int i = 0; i < paramValues.length; i++)
+ {
+ try
+ {
+ paramValues[i] = new
String(paramValues[i].getBytes("ISO-8859-1"), getCharacterEncoding());
+ }
+ catch (UnsupportedEncodingException e)
+ {
+ ;
+ }
+ }
+ }
+
if (values != null)
{
String[] temp = new String[paramValues.length + values.length];
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]