struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <craig...@apache.org>
Subject Re: AW: Transforming a String to valid HTML encoding
Date Tue, 14 Jan 2003 18:06:20 GMT


On Tue, 14 Jan 2003, Hirschmann, Bernhard wrote:

> Date: Tue, 14 Jan 2003 17:31:03 +0100
> From: "Hirschmann, Bernhard" <Bernhard.Hirschmann@t-systems.com>
> Reply-To: Struts Users Mailing List <struts-user@jakarta.apache.org>
> To: 'Struts Users Mailing List' <struts-user@jakarta.apache.org>
> Subject: AW: Transforming a String to valid HTML encoding
>
>
> I wonder if this problem is too easy or too hard - may please somebody
> comment this?
>

ResponseUtils is only worried about filtering the characters that could
cause security problems -- it is not designed to be a general purpose URL
encoder.  For that, check out the java.net.URLEncoder class.

> Craig?
>
> Thank you very much

Craig


>
>
> ----- original message -----
>
> I still have the problem to transform a String containing national special
> characters to the appropriate HTML encoding.
>
> i.e.: "schön & reich" --> "sch&ouml;n &amp reich"
>
> The class org.apache.struts.util.ResponseUtils only transforms the 4
> characters <, >, & and " into their html representative.
>
> Is there another transformer around?
>
> Any hints highly appreciated.
>
> Regards,
> Bernhard
>
>
> --
> To unsubscribe, e-mail:
> <mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:struts-user-help@jakarta.apache.org>
>
>
> --
> To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message