[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

Encoding problem with Tomcat 5.5 POST method

Asked by JohnSixkiller in Apache Tomcat Application Server, Java Server Pages (JSP), Java Servlets

Tags: Tomcat, java, encoding, post

Hi,
we have quite a big webapp. In past few day something goes wrong and messed up encoding. I was not able to figure it out. I cant find any difference in code or in cofiguration of any other computer.

What I need is to get data encoded in UTF-8 (POST method). But I alwas got ISO 8859-1.
I already have following on both pages HTML form and process page:

<%@ page language="java" session="true" contentType="text/html; charset=UTF-8"%>
<%@ page pageEncoding="UTF-8" %>
<% request.setCharacterEncoding("UTF-8"); %>

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

URIEncoding in server.xml affects only GET method.

Thanks for help
John
[+][-]10/21/09 02:56 AM, ID: 25622263Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/23/09 08:38 PM, ID: 25650646Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/24/09 02:32 AM, ID: 25651443Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/26/09 02:42 AM, ID: 25660711Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/29/09 10:00 AM, ID: 25695741Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091021-EE-VQP-81 - Hierarchy / EE_QW_3_20080625