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 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:
> http://download.oracle.com/otn-pub/jcp/jsp-2.2-mrel-eval-oth-JSpec/jsp-2_2-mrel-spec.pdf
> 
> The syntax would look something like
> 
> <jsp-property-group>
>    <url-pattern>/*</url-pattern>
>    <page-encoding>UTF-8</page-encoding>
> </jsp-property-group>
> 
> 
> I haven't used JSPs in years, and have no idea of whether Resin supports this.
> 
> Knut Forkalsrud
> 
> 
> 
> 
>> On Fri, Feb 28, 2014 at 11:41 AM, Rick Mann <rm...@latencyzero.com> wrote:
>> 
>> 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 right.
>> >>
>> >
>> > I believe that's correct, though. The top page is responsible for deciding 
>> > encoding.
>> 
>> I found I need to include it in both the top page, AND the page that gets 
>> included. Wish there were a way to just set it once for the whole container.
>> 
>> >
>> > -- Scott
>> >
>> >>
>> >> On Feb 28, 2014, at 04:45 , Rick Mann
>> >> <rm...@latencyzero.com>
>> >>  wrote:
>> >>
>> >>
>> >>> 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 wasn't 
>> >>> rendering correctly. It used to with the old HTML, so I investigated.
>> >>>
>> >>> Turns out, it only renders correctly if I <jsp:include> the HTML snippet 
>> >>> that contains the symbol. If it's typed directly into the page, it 
>> >>> doesn't work.
>> >>>
>> >>> Any ideas? Thanks!
>> >>>
>> >>> --
>> >>> Rick
>> >>>
>> >>>
>> >>>
>> >>> _______________________________________________
>> >>> resin-interest mailing list
>> >>>
>> >>> resin-interest@caucho.com
>> >>> http://maillist.caucho.com/mailman/listinfo/resin-interest
>> >>
>> >>
>> >>
>> >> _______________________________________________
>> >> resin-interest mailing list
>> >>
>> >> resin-interest@caucho.com
>> >> http://maillist.caucho.com/mailman/listinfo/resin-interest
>> >
>> > _______________________________________________
>> > resin-interest mailing list
>> > resin-interest@caucho.com
>> > http://maillist.caucho.com/mailman/listinfo/resin-interest
>> 
>> 
>> --
>> Rick
>> 
>> 
>> 
>> 
>> _______________________________________________
>> resin-interest mailing list
>> resin-interest@caucho.com
>> http://maillist.caucho.com/mailman/listinfo/resin-interest
> 
> _______________________________________________
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest
_______________________________________________
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest

Reply via email to