Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@www.apache.org Received: (qmail 55659 invoked from network); 19 Dec 2003 16:34:55 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 19 Dec 2003 16:34:55 -0000 Received: (qmail 28988 invoked by uid 500); 19 Dec 2003 16:34:43 -0000 Delivered-To: apmail-jakarta-tomcat-dev-archive@jakarta.apache.org Received: (qmail 28948 invoked by uid 500); 19 Dec 2003 16:34:42 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 28935 invoked from network); 19 Dec 2003 16:34:42 -0000 Received: from unknown (HELO minotaur.apache.org) (209.237.227.194) by daedalus.apache.org with SMTP; 19 Dec 2003 16:34:42 -0000 Received: (qmail 55603 invoked from network); 19 Dec 2003 16:34:48 -0000 Received: from unknown (HELO apache.org) (127.0.0.1) by 127.0.0.1 with SMTP; 19 Dec 2003 16:34:48 -0000 Message-ID: <3FE328A2.7020704@apache.org> Date: Fri, 19 Dec 2003 17:34:42 +0100 From: Remy Maucherat User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Tomcat Developers List Subject: Re: Intro/question possible buglet with Content-Type and Charsets . References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Rating: 127.0.0.1 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Greg.Cope@pfizer.com wrote: >>Greg.Cope@pfizer.com wrote: >> >>>Ah this still does not fix it I am afraid. >>> >>>Neither does the CVS patch. >>> >>>:-( >>> >>>Any objections to reopening the bug? >> >>Well, yes. Please do not reopen the report. Revisions 1.30 or 1.31 do >>(really) resolve the issue. > > > Pulled 1.31 from CVS - complied it with some debug statements and it appears > that Response.java setContentType is being called with: > application/vnd.ms-excel;charset=ISO-8859-1 > > When my code is: > > <%@page contentType="application/vnd.ms-excel"%> Ok, now I understand. Your problem is that you're trying to generate binary data using JSPs. You can't do that, basically (Jasper will always use a Writer, and it will also always set the encoding). I'm sure you can hack your way around by using the "right" encoding, but you should really use a servlet. There's a "fix" for you though: you can use revision 1.30 or Response, which strips out the charset if it's the default encoding. R�my --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org