Stéphane Kahn created WICKET-5278:
-------------------------------------
Summary: Wicket:enclosure and UTF-8 encoding issue
Key: WICKET-5278
URL: https://issues.apache.org/jira/browse/WICKET-5278
Project: Wicket
Issue Type: Bug
Components: wicket
Affects Versions: 6.4.0
Reporter: Stéphane Kahn
Priority: Minor
I encounter an issue using wicket:enclosure and utf-8 characters inside
enclosures using html tags with wicket:enclosure attribute. If I use
wicket:enclosure tag, everything looks fine.
For instance:
1) using wicket:enclosure attribute:
<p wicket:enclosure="aLink">éééé<br />
<a wicket:id="aLink">ééé</a>
</p>
2) using wicket:enclosure tag:
<wicket:enclosure child="aLink">
<p>éééé<br /><a wicket:id="aLink">ééé</a></p>
</wicket:enclosure>
In the first case, I get question marks instead of "é". In the second case,
everything is fine.
This only happens when JVM default character set is different from my
application encoding, in my case, JVM default charset is US-ASCII.
Encoding is configured in sun-web.xml (Glassfish) and Application#init() :
* <parameter-encoding default-charset="UTF-8" />
* getMarkupSettings().setDefaultMarkupEncoding("UTF-8");
I think this bug is a duplicate of closed issue WICKET-4974.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira