You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by yasuhiko yoshikawa <ya...@netjoy.ne.jp> on 2003/11/02 07:18:36 UTC
urlEncode() method in RequestUtils (struts-1.1)
Hi,
Is anyone working on the RequestUtils#computeURL method so that the
request parameters are encoded in the page's character encoding?
I have been having trouble with html:rewrite tag and others that uses
RequestUtils#computeURL method. The problem is that the RequestUtils#urlEncode
method that the computeURL method uses assumes that the strings that are
part of the url parameters to be character encoded in UTF-8.
I need the request parameters to be character encoded in the encoding
that the jsp page is encoded in. If the jsp page has line like
<%@ page language="java" contentType="text/html; charset=EUC_JP" %>
then the request parameters should be encoded using EUC_JP, not UTF-8.
However, the RequestUtils#urlEnode method is hard coding the parameter
to be UTF-8 encoded.
I looked at the source code of the struts-1.1 and wrote a quick fix, but
I have trouble with building the source as I do not have all the
required libraries.
Before I start putting the build environment together, which seem to be
a fair amount of work, I would like to know if anyone is already working
on this so that I know that I am not wasting my time.
Thank you.
-------------------
Yasuhiko Sakakibara
yass@netjoy.ne.jp
ysakakib@hawaii.edu
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org