Yes, something has changed compared to the wiki entry: The response
(and request) encoding is no longer determined by the page's markup
xml declaration (<?xml..), it is now an appication setting
set/getResponseRequestEncoding(). The reason why we changed it is
described here
http://www.crazysquirrel.com/computing/general/form-encoding.jspx).
But I have the impression that this is not your problem. I assume your
markup (page as well as panels and borders etc.) contain a <?xml
encoding=".."?> xml declaration? Wicket will use the encoding this
information while reading (FileReader) the markup file. Thus, if the
encoding is ISO-8859-1 your text editor should save the file in
iso-8859-1 encoding. Similiar, if your encoding is UTF-8 you must make
sure the file's content is realy saved utf-8 encoded. Usually only XML
editors automatically read the <?xml?> and save the file with the
proper encoding. Most text editors (and IDEs) must be explicitly told
which encoding to use (save as dialog, or file properties, ... that
realy depends on the editor you are using)
Juergen
On 8/27/05, Johan Compagner <[EMAIL PROTECTED]> wrote:
> so on disk on the server that file is writen in 8859-1 but with a
> unicode $C3A4 ?
> why not directly with a $E4? As it should if E4 is the 8859-1 value of
> th a-umlaut?
>
>
> johan
>
>
> Stefan Lindner wrote:
> > Dear wicket wizzards,
> >
> > I have a character encoding problem (with wicket 1.1beta2 and 1.1beta3).
> >
> > 1. My HTML file is IOS-8859-1 encoded an a-umlaut (ä) is correctly
> > represented
> > in unicode as $C3A4.
> > 2. The a-umlaut is not part of a wicket-generated <span wicket:id...>
> > element,
> > it is pure html
> > 3. Yes, I could wirte the a-umlaut as ä but I use this just as a
> > demonstration
> > to simplify my java problem for you.
> > 4. The rendered HTML that goes to the browser still containts the umlaut
> > in unicode
> > representation $C3A4 and not as $E4, which is the ISO-88591 single byte
> > representation of 'ä'.
> > 5. Firefox has no problem and shows a proper 'ä'
> > 6. Internet Explorer shows 'ä'.
> > 7. I try to force the encoding by calling
> > getApplicationSettings().setDefaultMarkupEncoding("ISO-8859-1");
> > but the result is the same.
> > 8. Yes, I read the "Markup encoding" in the wiki under
> > http://wicket.sourceforge.net/wiki/index.php/Markup_encoding
> > 9. By the way. The Wiki says "THIS IS GOING TO CHANGE in 1.1". What
> > changes will
> > appear? Is my problem related to this changes?
> > 10. Nevertheless: It's a pleasure to use Wicket! I evaluated a lot of
> > frameworks
> > (JSP/JSF/Tapestry/WebOnSwing/W4T) and wicket was the very best.
> >
> > Stefan
> >
> >
> > -------------------------------------------------------
> > SF.Net email is Sponsored by the Better Software Conference & EXPO
> > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
> > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
> > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
> > _______________________________________________
> > Wicket-user mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
>
>
> -------------------------------------------------------
> SF.Net email is Sponsored by the Better Software Conference & EXPO
> September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
> Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
> Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user