Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java Open Source > Struts
|
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Struts section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 9th, 2006, 09:59 AM
Registered User
 
Join Date: Oct 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default incorrect charset when reading the jsp form

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






Similar Threads
Thread Thread Starter Forum Replies Last Post
Reading Multipart form data dotnetprogrammer VS.NET 2002/2003 0 July 12th, 2005 05:31 AM
Reading from Database to Online Form larry101 Classic ASP Databases 1 December 21st, 2004 11:40 PM
Reading Form values into PHP peteburford BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 1 August 20th, 2004 11:23 AM
charset encoding bservi XML 0 May 3rd, 2004 07:32 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.