Wicket completely ignores <meta http-equiv="Content-Type"
content="text/html; charset=iso-8859-1">. And because no editor, maybe
except good htm editors, ignore the tag as well, it is completely up
to you to save the file in the correct encoding. I personally prefer
<?xml ... encoding="..."?> as almost all XML editors (including
eclipse) handle it correct (save the file in the proper formatting)
and, that is important as well, Wicket uses it to determine the
encoding of the file while reading it. Otherwise Wicket refers to the
default encoding of your PC. Note: it is only used to read the file.
WIcket removes the <?xml > from the markup and inserts its own, with
the encoding as defined for the Wicket Application (see ISettings).
This approach has proven to be working very well and there are
numerous discussions in the various archives why we are doing it that
way in case you are interested.

Juergen

>On 7/29/06, Pierre-Yves Saumont <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am new in using Wicket, but I had this problem with all the Frameworks
> I used before.
>
> In Wicket, it was absolutely no problem since I just added :
>
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
>
> in the HTML template to make it work. It seems Wicket managed this
> transparently.
>
> Please correct me if I am wrong.
>
> Pierre-Yves
>
> PS: I am however still having a problem with one character that is
> fréquently used in french and does not exist in iso-8859-1 (the oe
> ligature). Can anybody tell me what is the best place in Wicket to
> implement a filter that would replace this character with the html
> entity &oelig; ?
>
> JK a écrit :
> > Hello again, Problem was with
> >     setResponsePage(ThankYou.class,parameter);
> > and parameter (PageParameters) encoding.
> >
> > Code for setting default encoding (ok?):
> > ---------- WebApplication
> >
> > protected void init()
> > {
> >       getMarkupSettings().setDefaultMarkupEncoding("iso-8859-1");
> > }
> >
> > 2006/7/27, JK <[EMAIL PROTECTED]>:
> >> Hi,
> >>
> >> How do you change character encoding from utf-8 to iso-8859-1? If I define
> >> ----------
> >> protected void configureResponse() {
> >>   super.configureResponse();
> >>
> >>   final WebResponse response = getWebRequestCycle().getWebResponse();
> >>   response.setHeader("Content-Type", "text/html; charset=iso-8859-1");
> >> }
> >> ----------
> >> for WebPage subclass, component MultiLineLabel still has wrong encoding 
> >> (utf-8).
> >>
> >
> > -------------------------------------------------------------------------
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to share your
> > opinions on IT & business topics through brief surveys -- and earn cash
> > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > _______________________________________________
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
> >
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to