xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
Re: [XOM-interest] [SPAM(hdr)] - Has anyone experience using tag Soup to read Windows files on a Linux system?
- From: "Peter Taylor" <peter.taylor AT greenhat.com>
- To: <davecb AT spamcop.net>, "XOM API for Processing XML with Java" <xom-interest AT lists.ibiblio.org>
- Subject: Re: [XOM-interest] [SPAM(hdr)] - Has anyone experience using tag Soup to read Windows files on a Linux system?
- Date: Sun, 6 Feb 2011 10:25:08 -0000
the xml declaration should have defined the encoding, but as a work-around
try using this:
http://download.oracle.com/javase/6/docs/api/java/io/InputStreamReader.html#InputStreamReader%28java.io.InputStream,%20java.lang.String%29
to adapter the inputstream with a charset into a reader, then pass this
reader to the InputSource.
-----Original Message-----
From: xom-interest-bounces AT lists.ibiblio.org on behalf of David Collier-Brown
Sent: Sun 06/02/2011 01:08
To: XOM API for Processing XML with Java
Cc: davecb AT spamcop.net
Subject: [SPAM(hdr)] - [XOM-interest] Has anyone experience using tag Soup to
read Windows files on a Linux system?
This is perhaps as much a tag soup question as an XOM one, but I'm
trying to read a file created in a Windows character set and then copied
to our production Linux system.
Has anyone experience in explicitly setting the input character set so
that the sax parser, in this case tag soup, can interpret it properly?
I've experimented with setting the encoding with an InputSource, but
with no visible effect.
--dave
--
David Collier-Brown, | Always do right. This will gratify
System Programmer and Author | some people and astonish the rest
davecb AT spamcop.net | -- Mark Twain
(416) 223-8968
_______________________________________________
XOM-interest mailing list
XOM-interest AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/xom-interest
-
[XOM-interest] Has anyone experience using tag Soup to read Windows files on a Linux system?,
David Collier-Brown, 02/05/2011
-
Re: [XOM-interest] [SPAM(hdr)] - Has anyone experience using tag Soup to read Windows files on a Linux system?,
Peter Taylor, 02/06/2011
- Re: [XOM-interest] Has anyone experience using tag Soup to read Windows files on a Linux system?, David Collier-Brown, 02/06/2011
-
Re: [XOM-interest] [SPAM(hdr)] - Has anyone experience using tag Soup to read Windows files on a Linux system?,
Peter Taylor, 02/06/2011
Archive powered by MHonArc 2.6.24.