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 2003/01/13 13:33:45 UTC

Transforming a String to valid HTML encoding

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. But in an
internationalized application we have 28 languages with all their special
characters to handle.

I guess we're not the first to solve this problem, but I can't find a
transformer for that. 

Any hints highly appreciated.

Regards,
Bernhard

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