[Resin-interest] Character encoding in root vs included JSP

2014-02-28 Thread Rick Mann
I thought I had UTF-8 set throughout my app; source files are encoded in it, I set it everywhere I can think of (requests, responses, JVM, HTML and JSP tags). I we re-doing the HTML for my site, fancifying it with bootstrap and all that goodness, when I noticed that the copyright symbol I typed

Re: [Resin-interest] Character encoding in root vs included JSP

2014-02-28 Thread Rick Mann
Hmm. Seems like if I %@ include a file that contains %@ page contentType=text/html; charset=UTF-8% Then it doesn't work. If I include that @ page line directly, it gets the encoding right. On Feb 28, 2014, at 04:45 , Rick Mann rm...@latencyzero.com wrote: I thought I had UTF-8 set throughout

Re: [Resin-interest] Character encoding in root vs included JSP

2014-02-28 Thread Scott Ferguson
On 2/28/14, 4:47 AM, Rick Mann wrote: Hmm. Seems like if I %@ include a file that contains %@ page contentType=text/html; charset=UTF-8% Then it doesn't work. If I include that @ page line directly, it gets the encoding right. I believe that's correct, though. The top page is responsible

Re: [Resin-interest] Character encoding in root vs included JSP

2014-02-28 Thread Rick Mann
On Feb 28, 2014, at 08:55 , Scott Ferguson f...@caucho.com wrote: On 2/28/14, 4:47 AM, Rick Mann wrote: Hmm. Seems like if I %@ include a file that contains %@ page contentType=text/html; charset=UTF-8% Then it doesn't work. If I include that @ page line directly, it gets the encoding

Re: [Resin-interest] Character encoding in root vs included JSP

2014-02-28 Thread Knut Forkalsrud
Traditionally the JSP spec has mandated ISO-8859-1 if nothing else is explicitly specified. However I notice recent versions have a facility to specify it more broadly in web.xml Case in point is section JSP.3.3.4 in version 2.2 of the spec:

Re: [Resin-interest] Character encoding in root vs included JSP

2014-02-28 Thread Matt Pangaro
You could also use a jsp prelude to include whatever directives you need. A bit of a hack, but it gets the job done. Sent from my cool new iPad Mini On Feb 28, 2014, at 3:22 PM, Knut Forkalsrud knut-cau...@forkalsrud.org wrote: Traditionally the JSP spec has mandated ISO-8859-1 if

Re: [Resin-interest] Character encoding in root vs included JSP

2014-02-28 Thread Rick Mann
Thank you. Adding this: jsp-config jsp-property-group url-pattern*.jsp/url-pattern page-encodingUTF-8/page-encoding /jsp-property-group /jsp-config To the bottom of my web.xml seems to have