Hi Jonas,

thanks for your help, but I think it doesn't help. Just to make sure that I understood the Application#init correctly, you meant to do it like this, right(?):

public class MyApp extends WebApplication {
public void init()
   {
       getRequestCycleSettings().setResponseRequestEncoding("UTF-8");
       getMarkupSettings().setDefaultMarkupEncoding("UTF-8");
   }
public Class getHomePage() {

       return Index.class;
       }
}

Still, it seems to convert my code from latin1 to utf8, even though I enter utf8-text.
Thanks for further help
Philipp
Hi,

have you tried setting

getRequestCycleSettings().setResponseRequestEncoding("UTF-8");
getMarkupSettings().setDefaultMarkupEncoding("UTF-8");

in your Application#init

If you don't set the default markup encoding explicitly, the default
for it is the 'os provided encoding' (see:
IMarkupSettings#getDefaultMarkupEncoding)

cheers,
Jonas



On Fri, Jan 30, 2009 at 1:02 AM, Philipp Daumke <[email protected]> wrote:
Hi Mathias,

'äöü' is actually already converted to 'äöü' when I add a breakpoint at
the onSubmit method of my form (so right when I get the input of the text
field from my model).

My whole eclipse is in UTF-8, Wicket writes UTF-8 to each HTML-Page, my
firefox says UTF-8. What I think is that Wicket or Tomcat treats my
UTF8-String äöü as an ISO-8859-1 String and converts it from iso to utf8, so
into 'äöü'. When I copy 'äöü' into a tmp.txt file in unix-shell which
is in UTF-8 and do an "iconv -futf8 -tlatin1 tmp.txt" on it, the output is
'äöü' again.

Any idea what to do?
All the best
Philipp
Do you save it to a database and then display the text? How do you present
it?

--

Averbis GmbH
c/o Klinikum der Albert-Ludwigs-Universität
Stefan-Meier-Strasse 26
D-79104 Freiburg

Fon: +49 (0) 761 - 203 6707
Fax: +49 (0) 761 - 203 6800
E-Mail: [email protected]

Geschäftsführer: Dr. med. Philipp Daumke, Kornél Markó
Sitz der Gesellschaft: Freiburg i. Br.
AG Freiburg i. Br., HRB 701080


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



--

Averbis GmbH
c/o Klinikum der Albert-Ludwigs-Universität
Stefan-Meier-Strasse 26
D-79104 Freiburg

Fon: +49 (0) 761 - 203 6707
Fax: +49 (0) 761 - 203 6800
E-Mail: [email protected]

Geschäftsführer: Dr. med. Philipp Daumke, Kornél Markó
Sitz der Gesellschaft: Freiburg i. Br.
AG Freiburg i. Br., HRB 701080


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to