Thanks, Mark.
As I mentioned in my post, I already have the JSP page set as
HTML: <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
JSP: <%@ page contentType="text/html;charset=UTF-8" language="java" %>
I use a MVC framework. So, I am not sure anywhere using GET.
I have this issue for ages. I haven't been able to resolve. I have to move
long text into a message property file to go around this problem.
----Original Message Follows----
From: Mark Thomas <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <users@tomcat.apache.org>
To: Tomcat Users List <users@tomcat.apache.org>
Subject: Re: Non-Latin Character Display
Date: Fri, 16 Mar 2007 21:17:37 -0400
Vernon _ wrote:
> I believe that is a TC configuration related issue. After having "set
> JAVA_OPTS= -Dfile.encoding=UTF-8"
There is no need to do this. This setting is read only on some JVMs.
Try the following. If you use GET, you'll need to set the encoding in
the connector as well.
<%@ page contentType="text/html; charset=UTF-8" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Character encoding test page</title>
</head>
<body>
<p>Data posted to this form was:
<%
request.setCharacterEncoding("UTF-8");
out.print(request.getParameter("mydata"));
%>
</p>
<form method="post" action="index.jsp">
<input type="text" name="mydata">
<input type="submit" value="Submit" />
<input type="reset" value="Reset" />
</form>
</body>
</html>
HTH,
Mark
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________
Watch free concerts with Pink, Rod Stewart, Oasis and more. Visit MSN
Presents today.
http://music.msn.com/presents?icid=ncmsnpresentstagline&ocid=T002MSN03A07001
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]