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
(𞉀) or Hexadecimal (þ) Character References.
Now, if a bean property contains some String with character references
(e. g. new String("エラー");) 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
"エラー" (which would be displayed correct), but
&#12456;&#12521;&#12540; which is displayed as
"エラー" - what is not nice!
Why that behavior?
How to switch off that mechanism?
I appreciate any hint!
Cheers
Hartmut