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 the

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

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:

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-config jsp-property-group

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

Re: [Resin-interest] Having several resin-server behind an apache webserver-instance

2009-07-29 Thread Scott Ferguson
On Jul 28, 2009, at 7:53 AM, MORAWETZ Martin wrote: Hi, Is it possible to have several resin-server behind an apache webserver-instance? Certainly. Resin's always allowed multiple servers. And if so is it possible to have some sort of load-balancing (e.g. with mod_caucho)?