W3C home > Mailing lists > Public > www-jigsaw@w3.org > January to February 1999

Re: [Fwd: Re: JAVA mail 1.1.1 has the same bug... / and: "Re: BUG: Unsupported encoding type..."]

From: Benoit Mahe <Benoit.Mahe@sophia.inria.fr>
Date: Thu, 25 Feb 1999 10:46:58 +0100
Message-ID: <36D51C12.E260721F@sophia.inria.fr>
To: Benoit Mahe <Benoit.Mahe@sophia.inria.fr>
CC: Roland Mainz <Roland.Mainz@informatik.med.uni-giessen.de>, Jigsaw Mailing List <www-jigsaw@w3.org>
It's fixed, the new version of org.w3c.www.mime.MimeType
will be available tomorrow in the public CVS tree [1]

[1] http://dev.w3.org/cgi-bin/cvsweb/

Regards, Benoit

Benoit Mahe wrote:

> You're right, there is a bug in org.w3c.mime.MimeType, I'll fix it.
>
> Regards, Benoit.
>
> Roland Mainz wrote:
>
> > -------- Original Message --------
> > Subject: Re: JAVA mail 1.1.1 has the same bug... / and: "Re: BUG:
> > Unsupported encoding type..."
> > Date: Wed, 24 Feb 1999 12:00:31 -0800 (PST)
> > From: John Mani <John.Mani@Eng.Sun.COM>
> > Reply-To: John Mani <John.Mani@Eng.Sun.COM>
> > To: javamail@Sun.COM,Roland.Mainz@informatik.med.uni-giessen.de
> >
> > The bug seems to be in the jigsaw code - since quoted parameter-values
> > are a valid MIME construct. i.e., text/plain; charset="foo-bar" is a
> > VALID
> > content-type header.
> >
> > org.w3c.jigsaw.servlet.JigsawHttpServletResponse.getWriter(...)
> > should remove the quotation marks before attempting to call the
> > OutputStreamWriter constructor. It doesn't seem to be doing that.
> >
> > -john
> >
> > > But I'd like to preserve the charset because sometimes it's important (the
> > > contenttype value is fed into javax.servlet.ServletResponse.setContentType(),
> > > and as you can see in my exception example, the following getWriter() failed).
> > >
> > > But according your hint, a workaround for my problem may look like this:
> > >
> > > -- snip --
> > > String ct = "text/plain; charset=\"iso-8859-1\"" ;
> > >
> > > try
> > > {
> > >     mimetype = (new ContentType( ct )).toString()
> > > }
> > > catch( ParseException exc )
> > > {
> > >     exc.printStackTrace();
> > >     mimetype = "text/plain"; // error-fall-back for all problems...
> > > }
> > > -- snip --
> > >
> > >
> > > ----
> > >
> > >
> > > > That'll do it.
> > >
> > > Thanks !
> > >
> > > ----
> > >
> > >
> > > > btw, pls do not send "html" email to this mailing list. Just send
> > > > plain-text ! (Adjust your Netscape mailer settings to send plain-text)
> > >
> > > Sorry. I didn't recognised that javamail@sun.com is a mailinglist :-(
> > >
> > > ----
> > >
> > > Bye,
> > > Roland
> > >
> > >
> > > --
> > >   __ .  . __
> > >  (o.\ \/ /.o)  Roland Mainz                               C programmer
> > >   \__\/\/__/   Roland.Mainz@informatik.med.uni-giessen.de MPEG specialist
> > >   /O /==\ O\   gisburn@w-specht.rhein-ruhr.de             Sun&&Amiga
> > programmer
> > >  (;O/ \/ \O;)  TEL +49 (0) 2426901568  FAX +49 (0) 2426901569
> > >
> > >
>
> --
> - Benoît Mahé -------------------------------------------------------
>                       World Wide Web Consortium (W3C)
>                     Architecture domain - Jigsaw Team
>
>   http://www.w3.org/People/Mahe - bmahe@w3.org - +33.4.92.38.79.89
> ---------------------------------------------------------------------

--
- Benoît Mahé -------------------------------------------------------
                      World Wide Web Consortium (W3C)
                    Architecture domain - Jigsaw Team

  http://www.w3.org/People/Mahe - bmahe@w3.org - +33.4.92.38.79.89
---------------------------------------------------------------------
Received on Thursday, 25 February 1999 04:47:05 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:28 GMT