Subject: incorrect charset when reading the jsp form
Posted By: m.walter@fue-gmbh.com Post Date: 10/9/2006 9:59:13 AM
Hi all,
I'm developing a web application with Struts, TomCat and PostgreSQL (Hibernate).

Data from PostgreSQL (UTF-8) is displayed correctly in my <html:text> field.
But when I read this text field, i recognized by debugging the form, that its contents are in the wrong characterset.
e.g. ä instead of ä and so on.
I tried some things like:

<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>

or
 
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >
<head>

in the jsp-file

and

response.setContentType("text/html; charset=UTF-8");
request.setCharacterEncoding("UTF8");

in the action-file but nothing works.

Can anyone help me to solve the problem?
Thanks in advance
Martin


Go to topic 50762

Return to index page 153
Return to index page 152
Return to index page 151
Return to index page 150
Return to index page 149
Return to index page 148
Return to index page 147
Return to index page 146
Return to index page 145
Return to index page 144