ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Guttadauro <jtg...@yahoo.com>
Subject Re: New to Ant: Error reading project file
Date Wed, 11 Jun 2003 13:39:58 GMT
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.

HTH,
-Jeff

 
--- "Héctor_A._Abreu" <hector.abreu@attbi.com> wrote:
> Hi, there.
> 
> I am getting the following error every time I try to
> run an Ant documentation example from the DOS
> prompt: 
> 
> BUILD FAILED
> 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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message