- From: Roland Mainz <Roland.Mainz@informatik.med.uni-giessen.de>
- Date: Wed, 24 Feb 1999 21:13:27 +0100
- To: W3 Jigsaw Mailinglist <www-jigsaw@w3.org>
-------- 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
>
>
Received on Wednesday, 24 February 1999 15:12:40 UTC