So, I created two dirt-simple files, identical in content, one ending
in .jsp, one ending in .html. I have no filters or other processing in
my webapp. Resin 4.0 seems to re-encode the UTF-8 copyright symbol,
and I get four bytes "C3 82 C2 A9", when I should have two: "C2 A9",
but ony in the .jsp, not in the .html.
I figure at some point a conversion is happening where something is
having the wrong encoding applied.
On Jul 28, 2009, at 18:19:24, Rick Mann wrote:
> I'm running Resin 4.0 on Mac OS X. I have a .jsp file encoded as
> UTF-8, and I pass -Dfile.encoding=utf-8 to the jvm. At the top of my
> JSPs, I have
> <%@ page contentType="application/xhtml+xml; charset=UTF-8"%>
> I've verified that the JSP thinks the request and response encodings
> are UTF-8 with:
> "+ request.getCharacterEncoding());
> Encoding: "+ response.getCharacterEncoding());
> But, the copyright symbol in my source file, which looks fine in my
> UTF-8 aware text editor, renders as a capital A with a grave accent,
> and the copyright symbol.
> What aspect of the encoding am I forgetting?
> resin-interest mailing list
resin-interest mailing list