Hi Ulf,

do you have your charset declared as utf8 like this?

<%@ page contentType="text/html; charset=UTF-8"%>

Maybe you have to write the special characters in the string as html entities...

Em 11-03-2010 09:10, Ulf Liedén escreveu:
Hi all,

my first post to this list :-). Sorry if I'm double posting, not sure if the
first message reached the 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



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to