not sure this is a parser problem. Without <?xml encoding=".."?> we
use the jvm default encoding to read the file but even with
encoding="utf-8" we don't convert \u4e4b (browsers don't do either).
We read the file char by char and that is written to the output. No
automatic masking, nothing. Just reading and writing. The same is true
for html specific &#23456. The latter one usually works, as in your
example, as the browser knows how to handle it, however not with a
ButtonFactory as the factory takes the "specification" to create the
button. And it is the factory which needs to simulate the browser. The
solution is: add <?xml encoding="utf-8"?> to your markup. Eclipse
(XmlBuddy) will automatically convert the file content and store it in
the proper (utf-8) format and add by means of alt+20640 whatever
character.

Juergen


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to