Re: pageEncoing and contentType

2004-04-22 Thread seiji takegata
Hi > >Maybe you should query tomcat-dev list about how (and if you really > > need) to override Jasper's behaviour on inserting "pageEncoding" value > > into Content-Type header. > > In tomcat-dev list, they say "IT'S SPEC." that's it. I've learned that "If you don't like it, shut up and

Re: pageEncoing and contentType

2004-04-19 Thread seiji takegata
Hi,Antonio Thank you for your reply. Here is my whole jsp code. It is OK except that I want: response.setContentType("application/pdf); rather than: response.setContentType("application/pdf;charset=Shift_JIS"); (I'm looking into .java in tomcat work directory which jasper generates.) <%@ page

Re: pageEncoing and contentType

2004-04-19 Thread Antonio Fiol BonnĂ­n
What are you using to make the PDF content slip into the wire? If you are using a "Writer" you get from response.getWriter(), you may have interest in trying to use the "OutputStream", as in response.getOutputStream(). This is what the description of the getWriter method says: Returns a print

Re: pageEncoing and contentType

2004-04-19 Thread $BC]7A(B $B@?;J(B
On 2004.4.19, at 10:02 PM, Veniamin Fichin wrote: seiji takegata wrote: Try this: <%@ page contentType="application/pdf; charset=ISO-8859-1" pageEncoding="Shift_JIS" %> I tried. This time jasper generates: response.setContentType("application/pdf; charset=ISO-8859-1"); OK, and wit

Re: pageEncoing and contentType

2004-04-19 Thread Veniamin Fichin
seiji takegata wrote: Try this: <%@ page contentType="application/pdf; charset=ISO-8859-1" pageEncoding="Shift_JIS" %> I tried. This time jasper generates: response.setContentType("application/pdf; charset=ISO-8859-1"); OK, and with that you still can't get PDF right? Maybe you

Re: pageEncoing and contentType

2004-04-19 Thread seiji takegata
Hi, > seiji takegata wrote: > > > Hi Veniamin, > > Thank you for your reply. > > > >>What it means "character is not encoded correctly"? If PDF content > >>is unreadable, then that's PDF file problem, not Tomcat. Is this PDF > >>opens correctly by itself, i.e. when you open it through Adob

Re: pageEncoing and contentType

2004-04-19 Thread Veniamin Fichin
seiji takegata wrote: Hi Veniamin, Thank you for your reply. What it means "character is not encoded correctly"? If PDF content is unreadable, then that's PDF file problem, not Tomcat. Is this PDF opens correctly by itself, i.e. when you open it through Adobe Reader? Anyway, just do respon

Re: pageEncoing and contentType

2004-04-19 Thread seiji takegata
Hi Veniamin, Thank you for your reply. > What it means "character is not encoded correctly"? If PDF content > is unreadable, then that's PDF file problem, not Tomcat. Is this PDF > opens correctly by itself, i.e. when you open it through Adobe Reader? > Anyway, just do response.setConten

Re: pageEncoing and contentType

2004-04-19 Thread Veniamin Fichin
Hello Seiji. What it means "character is not encoded correctly"? If PDF content is unreadable, then that's PDF file problem, not Tomcat. Is this PDF opens correctly by itself, i.e. when you open it through Adobe Reader? Anyway, just do response.setContentType("application/pdf") and let br

pageEncoing and contentType

2004-04-18 Thread seiji takegata
Hi. I'm trying to generate PDF document directory from JSP using itext library. I have an encoding problem. I put pageEncoding and contentType attributes in page directive as: <%@ page contentType="application/pdf"%> <%@ page pageEncoding="Shift_JIS"%> Then tomcat (or jasper) translates them