You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Hartmut Bernecker <h....@dhw.de> on 2001/06/20 11:10:03 UTC

Displaying unicode hexadecimal character references with Struts

Hello,

HTML 4.0 allows to display unicode characters by using Decimal
(&#123456;) or Hexadecimal (&#x00FE;) Character References.
Now, if a bean property contains some String with character references
(e. g. new String("&#12456;&#12521;&#12540;");) then I expect a correct
output when displaying that bean-properties with a JSP-page.
But what happens? - The output to the browser is not
"&#12456;&#12521;&#12540;" (which would be displayed correct), but
&amp;#12456;&amp;#12521;&amp;#12540; which is displayed as
"&#12456;&#12521;&#12540;" - what is not nice!

Why that behavior?
How to switch off that mechanism?

I appreciate any hint!

Cheers
Hartmut