You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Hirschmann, Bernhard" <Be...@t-systems.com> on 2002/12/11 17:34:31 UTC

Transforming a String to valid HTML encoding

Hello!

Is there a parser around, which is able to parse a String with special
characters (like in the German language), and can transform them into valid
html encoding?

(like "sch&ouml;n" for schön)

Best regards
Bernhard




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Transforming a String to valid HTML encoding

Posted by Andrew Watters <an...@gointernet.co.uk>.
Can you use java.net.URLEncoder.encode(String s,String enc) (since J2SE
1.4)?

----- Original Message -----
From: "Hirschmann, Bernhard" <Be...@t-systems.com>
To: "Struts User Mailing List (E-Mail)" <st...@jakarta.apache.org>
Sent: Wednesday, December 11, 2002 4:34 PM
Subject: Transforming a String to valid HTML encoding



Hello!

Is there a parser around, which is able to parse a String with special
characters (like in the German language), and can transform them into valid
html encoding?

(like "sch&ouml;n" for schön)

Best regards
Bernhard




--
To unsubscribe, e-mail:
<ma...@jakarta.apache.org>
For additional commands, e-mail:
<ma...@jakarta.apache.org>




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>