xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
- From: "Michael Kay" <mike AT saxonica.com>
- To: "'Alex Blewitt'" <alex_blewitt AT yahoo.com>, <xom-interest AT lists.ibiblio.org>
- Subject: Re: [XOM-interest] Charset encoding problem
- Date: Wed, 14 Sep 2005 18:27:10 +0100
What's the encoding in the HTTP header? The only reason I can think of that
the parser might be trying to read it as UTF-8 is that the HTTP header and
the XML declaration disagree.
You can always switch products, but if you do that every time you get an
error message you can't pin down, you soon run out of products.
Michael Kay
http://www.saxonica.com/
> -----Original Message-----
> From: xom-interest-bounces AT lists.ibiblio.org
> [mailto:xom-interest-bounces AT lists.ibiblio.org] On Behalf Of
> Alex Blewitt
> Sent: 14 September 2005 17:33
> To: xom-interest AT lists.ibiblio.org
> Subject: [XOM-interest] Charset encoding problem
>
> I'm trying to parse an RSS feed, which is being served
> from a server as Content-Type: application/xml, and
> the XML identifies itself as encoding="ISO-8859-1" in
> the XML preamble.
>
> When I try to parse it, I get a SAX exception:
>
> new
> Builder().build("http://bandv.hopto.org/gallery/rss.php");
>
> nu.xom.ParsingException: Character conversion error:
> "UTF-8 encoding of character 0x001b2ba0 can't be
> converted to Unicode." (line number may be too low).
> at line 1, column -1 in
> http://bandv.hopto.org/gallery/rss.php
>
> As far as I can tell, the document is valid
> ISO-8859-1, although there are some characters that
> are oustide of ASCII (for example, there's ö in
> the title). However, I'm not sure whether there's a
> real problem with the document, or whether the parser
> is assuming it to be UTF-8 (which it's not). Having
> debugged a little into the code, it looks like it's a
> SAX parser exception that XOM is re-wrapping.
>
> Can anyone help?
>
>
>
>
>
> ___________________________________________________________
>
> Yahoo! Messenger - NEW crystal clear PC to PC calling
> worldwide with voicemail http://uk.messenger.yahoo.com
>
>
>
> ___________________________________________________________
> How much free photo storage do you get? Store your holiday
> snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com
> _______________________________________________
> XOM-interest mailing list
> XOM-interest AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/xom-interest
>
-
Re: [XOM-interest] Charset encoding problem
, (continued)
-
Re: [XOM-interest] Charset encoding problem,
Elliotte Harold, 09/14/2005
-
Re: [XOM-interest] Charset encoding problem,
Alex Blewitt, 09/14/2005
-
Re: [XOM-interest] Charset encoding problem,
John.Cowan, 09/14/2005
-
Re: [XOM-interest] Charset encoding problem,
Alex Blewitt, 09/14/2005
-
Re: [XOM-interest] Charset encoding problem,
Elliotte Harold, 09/14/2005
- Re: [XOM-interest] Charset encoding problem, Alex Blewitt, 09/14/2005
-
Re: [XOM-interest] Charset encoding problem,
Elliotte Harold, 09/14/2005
-
Re: [XOM-interest] Charset encoding problem,
Alex Blewitt, 09/14/2005
- Re: [XOM-interest] Charset encoding problem, Elliotte Harold, 09/14/2005
- Re: [XOM-interest] Charset encoding problem, Elliotte Harold, 09/14/2005
-
Re: [XOM-interest] Charset encoding problem,
John.Cowan, 09/14/2005
-
Re: [XOM-interest] Charset encoding problem,
Alex Blewitt, 09/14/2005
- Re: [XOM-interest] Charset encoding problem, Elliotte Harold, 09/14/2005
- Re: [XOM-interest] Charset encoding problem, John.Cowan, 09/14/2005
- Re: [XOM-interest] Charset encoding problem, Michael Kay, 09/14/2005
- Re: [XOM-interest] Charset encoding problem, Alex Blewitt, 09/14/2005
-
Re: [XOM-interest] Charset encoding problem,
Elliotte Harold, 09/14/2005
Archive powered by MHonArc 2.6.24.