When I call
getRequestCycleSettings().setResponseRequestEncoding("ISO-8859-1");
in Application.init() the pages are now encoded in ISO-88591 in the browser.
Does this mean that wicket ignores any
<?xml version="1.0" encoding="ISO-8859-1"?>
lines in HTML files? Is it the desired way tos et the encoding in
Applicaiton.init via setResponseRequestEncoding?
Stefan
-----Ursprüngliche Nachricht-----
Von: Stefan Lindner [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 24. Juli 2008 13:38
An: [email protected]
Betreff: encoding riddle ISO-8859-1
I Use wicket 1.3M3.I want to use the ISO-8859-1 encoding for my pages so I
- Have all Java files and all HTML files use ISO-8859-1 encoding.
- All HTML files start with
<?xml version="1.0" encoding="ISO-8859-1"?>
and have
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1"/>
</head>
- Application.init calls
getMarkupSettings().setDefaultMarkupEncoding("ISO-8859-1");
When I deploy my application and look at the source code of a esipayed html
page it reads
<?xml version="1.0" encoding="UTF-8"?>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1"/>
</head>
Where does the UTF-8 come from?
Stefan