Hi James

I finally got around to fixing this bug. Its now in CVS and the daily build.
Sorry it took so long to apply the patch.

James
----- Original Message -----
From: "James Dodd" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 27, 2002 4:15 AM
Subject: [dom4j-dev] Bug in XmlParser



Hello,

Bug found in org.dom4j.io.XmlParser.pushURL around line 3614 (can't tell
exactly where anymore because I've tinkered with it).

// RFC 2376 sez MIME text defaults to ASCII, but since the
// JDK will create a MIME type out of thin air, we always
// autodetect when there's no explicit charset attribute.
if (temp < 0)
    encoding = null; // autodetect
else {
    temp = encoding.indexOf ('=', temp + 7);
    encoding = encoding.substring (temp); // <-- BUG

That last line should read:

    encoding = encoding.substring ( temp + 1 ); // OK

I had a JSP page outputting Japanese XML with a page
contentType="text/xml;charset=UTF-8", and kept getting unsupported encoding
exceptions for "=UTF-8" when I tried to consume the service with XTags
(which is built upon dom4j).

I've never submitted a bug report to dom4j before.  Can I just assume it
will be fixed, or can I do it myself?

Cheers,

James Dodd

PS Mr Strachan, it would be great to hear what you're up to these days!

_______________________________________________
dom4j-dev mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-dev


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


_______________________________________________
dom4j-dev mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-dev

Reply via email to