I use Tomcat 5.5.

I am not sure how pipeline parameters are encoded as a part of URL, but if
they were always encoded in ISO-8895-1, that would be wrong, as that would
make to pass unicodes in URL impossible. On the contrary, if they were
encoded in UTF-8, everybody would be happy.

Any encoding related calls should use a customizable encoding, if situations
like that UTF-8 is not good enough in the future are considered. Otherwise,
to use a hardcoded "UTF-8" would be better to use a haredcoded "ISO-8895-1"

Thanks,

Jay


On 7/22/06, Shinsuke SUGAYA <[EMAIL PROTECTED]> wrote:

I'm not sure what web container you use.. But if I remember correctly,
usually, parameters will be parsed by ISO-8859-1 to get pipeline
parameter.

Thanks,
  shinsuke

(Jay) Jun Yan wrote:
> I am using Jetspee 2.0
>
> In org.apache.jetspeed.engine.servlet.ServletRequestImpl.  348855
> 2005-11-25
> 02:36:22Z ate
> Method getParameterMap, there is a line
>      paramValues[i] = new String(paramValues[i].getBytes("ISO-8859-1"),
> encoding);
>
> This is probably wrong, as it assumes parameters are ISO-8859-1 encoded,
> and
> that will cause UTF-8 encoded parameters, like
> request.jsp?name=%E9%A1%B9%E7%9B%AE
>
> be understood as "??", while actually it should be "项目" (Project in
> Chinese)
>
> I changed it to use UTF-8 at my place.
>
> Any suggestion/comments?
>
> Thanks,
>
> Jay
>

--------------------------------------
Let's start Yahoo! Auction  -  Free Campaign Now!
http://pr.mail.yahoo.co.jp/auction/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
(Jay) Jun Yan
---------------------------------------
Phone number and address will change, and this email address will never
expire. (Never say never?)

Reply via email to