You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Ulf Liedén <ul...@lieden.net> on 2010/03/11 09:43:33 UTC

Encoding of french characters in

Hi all,

my first post to this list :-).

I'm using Struts 2.1.6 and want to display a string that contains both HTML
markup as well as french characters (i.e. é è ê etc) on a webpage.

If I use <s:property value="%{document.text}" escape="true"/> the french
characters are correctly displayed, but the markup is escaped, and displayed
as normal text.

If I set escape="false" the tag interrupts the string at the first french
character, nothing is displayed of it or anything else of the subsequent
characters in the string.

How can I solve this problem? Update to a newer Struts version?

Best regards,
Ulf