> 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" %>

Mark was suggesting that you set the request encoding, not the response
encoding.

The above is character set setting which is different from character encoding. They are two different things.

In my original post, I already mentioned that I have converted the request character encoding to utf-8.

> I use a MVC framework. So, I am not sure anywhere using GET.

Uhh.... right. I'm sure you use GET requests sometimes. Better set it in
.the connector. Honestly, the client should be reporting the request
encoding, and you should be honoring it.

I can't see how this connect with the issue.

> 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.

Localized text should probably be in a separate file, anyway.

I don't know whether you understand the background or not. I was talking about something in between two i18n approaches. When one is not working, I have to use the other one.

How are you typing those characters into your java source files? If you
are using a source file encoding other than the default encoding on your
system, you might have to tell the JSP compiler what encoding the files
are in. You can't go wrong using \uWXYZ instead of native characters.

I typed the characters into a JSP file directly as I said in my original post. I also try put a unicode in JSP file as what it is in a message property file. The unicdoe shows up as what it is.

I believe the problem is laid in the process of either JSP file translation or/and servlet compiling. That is why I took a shot on the file encoding of Java option. It doesn't work, however.



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFF+32M9CaO5/Lv0PARAkMrAJ9/cfgcX2drWxcFLAUUGTwgOc5bygCfYwp8
6NszrV4jEM2cVQqFiyH+b6o=
=iC5l
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

_________________________________________________________________
Get a FREE Web site, company branded e-mail and more from Microsoft Office Live! http://clk.atdmt.com/MRT/go/mcrssaub0050001411mrt/direct/01/


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to