The characters from my markup pages and my data model is for some reason
rendered with different character encoding. The characters in the markup
shows up just right, while the exact same text hardcoded in a Label becomes
garbage.

This is what i get in the web browser. The web page is utf-8 encoded:

Characters from markup page: æøå 
Characters from data model: ʯÂ



>From my WebApplication.init():
        getMarkupSettings().setDefaultMarkupEncoding("iso-8859-1");
        this.getRequestCycleSettings().setResponseRequestEncoding("UTF-8");

Java code:
public class ContentPage extends SitePage {
    public ContentPage() {
        add(new Label("target", "Characters from data model: æøå"));
    }
}

Markup:
<html>
<body>
<wicket:extend>
    Characters from markup page: æøå
    <br>
</wicket:extend>    
 </body>
</html>


Has anyone had this kind of problems? Is there any other places where
character encoding is defined?


-- 
View this message in context: 
http://www.nabble.com/Problems-with-character-encoding-of-text-from-data-model-tp18596015p18596015.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to