ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "W. Sean Hennessy" <>
Subject RE: New to Ant: Error reading project file
Date Wed, 11 Jun 2003 15:31:30 GMT
If you copy and paste from the Example code provided in the
documentation watch out for the following lines with non UTF-8 quote chars:

<fileset dir="${lib.dir}"/>

<mapper type="glob" from="${src.manual}/*.xml" to="${doc.manual}/*.html"/>

<mapper type="glob" from="${src.grammer}" to="${gen.grammer}/*.c"/>
            <mapper type="glob" from="${src.grammer}" to="

-----Original Message-----
From: Jeff Guttadauro []
Sent: Wednesday, June 11, 2003 6:40 AM
To: Ant Users List
Subject: Re: New to Ant: Error reading project file

Surprised that it happens on a doc example, but here's
what it means for what it's worth...  The xml parser
reading the build file is reading it expecting it to
be UTF-8 encoded (probably the default assumption or
could be specified in the <?xml opening tag).  Anyway,
it's running into what it thinks should be a
"trailing" or "fill" byte (follow 1st byte in
multibyte characters) in the UTF-8 encoding.  These
trailing bytes have a value in the 0x80 - 0xBF range
(decimal 128 - 191).  However, the byte before this
byte is not a "lead" byte with specific ranges defined
for these based on 2-byte, 3-byte, or 4-byte multibyte
characters, so it should fall within 0x00 - 0x7F
(decimal 0 - 127) for a single byte character.

So, the bottom line is that there's probably an
extended ASCII character in the file but not UTF-8
encoded - most likely just ISO-8859-1 encoded.  So it
uses just 1 byte.  If the whole file is ISO-8859-1
encoded, then you can specify that in the opening
<?xml tag.  If not, you can open it in a hex editor
(or maybe you can eyeball it) and search for the
offending value that's within the 0x80 - 0xBF range.
Get rid of it or replace it with the UTF-8 encoded
byte sequence.


--- "Hictor_A._Abreu" <> wrote:
> Hi, there.
> I am getting the following error every time I try to
> run an Ant documentation example from the DOS
> prompt:
> Error reading project file: Invalid byte 1 of 1-byte
> UTF-8 sequence
> I will appreciate any hint, reference or help. Thank
> you in advance.

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message