Re: [Resin-interest] Can't seem to get character encoding right.

2009-07-29 Thread Knut Forkalsrud
I may be out of date, last time I used JSPs was in 2005 or so. Back then the default assumed page encoding was *ISO-8859-1*., not the same as contentType. The spec (JSP 1.2) http://java.sun.com/products/jsp/syntax/1.2/syntaxref12.pdf also indicated that (near the top of page 18. JSP 2.0 also indic

Re: [Resin-interest] Can't seem to get character encoding right.

2009-07-29 Thread Rick Mann
Oh! I just needed to touch the .jsp page so it would recompile. On Jul 29, 2009, at 14:52:41, Rick Mann wrote: > Are you saying that by only setting the content type, it should've > also set the page encoding? For sure, that wasn't happening. > > Also, I'm trying to set the page encoding via the

Re: [Resin-interest] Can't seem to get character encoding right.

2009-07-29 Thread Rick Mann
Are you saying that by only setting the content type, it should've also set the page encoding? For sure, that wasn't happening. Also, I'm trying to set the page encoding via the web.xml, with this: *.jsp UTF-8

Re: [Resin-interest] Can't seem to get character encoding right.

2009-07-29 Thread Scott Ferguson
The charset in the contentType is the default value of the pageEncoding. So it shouldn't matter. You can check the parsing, by the way, by looking at the generated *.java file. Those characters will be the parsed unicode values. -- Scott On Jul 29, 2009, at 2:27 PM, Rick Mann wrote: > Ga

Re: [Resin-interest] Can't seem to get character encoding right.

2009-07-29 Thread Rick Mann
Gah! Thank you! I feel like I should've known this, or did know it once upon a time and just forgot. On Jul 29, 2009, at 14:23:03, Knut Forkalsrud wrote: > Try adding either of these: > > <%@ page pageEncoding="ISO-8859-1" %> > <%@ page pageEncoding="UTF-8" %> > > One of them might do the trick

Re: [Resin-interest] Can't seem to get character encoding right.

2009-07-29 Thread Knut Forkalsrud
Try adding either of these: <%@ page pageEncoding="ISO-8859-1" %> <%@ page pageEncoding="UTF-8" %> One of them might do the trick -Knut <%@ page [ language="java" ] [ extends="package.class" ] [ import="{package.class | package.*}, ..." ] [ session="true|false" ] [ buffer="none|8kb|sizekb" ]

Re: [Resin-interest] Can't seem to get character encoding right.

2009-07-29 Thread Rick Mann
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 t

[Resin-interest] Can't seem to get character encoding right.

2009-07-28 Thread Rick Mann
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 wit