or you could use the html entity thing (&#nnnn;) here too, right?

Jonathan Locke wrote:


shouldn't the actual HTML file be in unicode? (you would need a unicode text editor)


Eelco Hillenius wrote:

Hi,

I just added a chinese (or at least something that looks like it using Babelfish) version of the input form. I am strugling with unicode support and the parsing of the template.

More specifically, I want to create a button that uses unicode like this:

<img wicket:id="resetButtonImage" value="buttonFactory:reset:\u53D6\u6D88"/>

Somehow, when parsing the templates, it looks like the slashes are escaped automatically (e.g. \u53D6 is converted to \\u53D6). So the buttons will be rendered with the literal '\u53D6' instead of looking up the proper character. What *does* work however, is constructing a button that uses unicode from Java directly, like:

getSharedResources().add("cancelButton", new DefaultButtonImageResource("\u53D6\u6D88"));

So, my guess is that we have parsing problem.

Any idea's/ fixes?

Eelco

b.t.w. I committed the chinese version of the input form so you can test it.


------------------------------------------------------- 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_id=6595&alloc_id=14396&op=click _______________________________________________ Wicket-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-develop



-------------------------------------------------------
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_id=6595&alloc_id=14396&op=click
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop



-------------------------------------------------------
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_id=6595&alloc_id=14396&op=click
_______________________________________________
Wicket-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-develop

Reply via email to