ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bansemir, Carsten" <Carsten.Banse...@huk-coburg.de>
Subject AW: New to Ant: Error reading project file
Date Wed, 11 Jun 2003 14:04:06 GMT
Wow, what a specific answer Jeff, now I understand the error message :)

but for the "newbies" to ant or especially to xml, who only whant to know what to do, (and
not why) it must be said that XML UTF-8 encoded) doesn't support country-specific characters
like "ä, ö, ü" in german or "é, ô ..." in french.
But the only point in the XML file where there can be found such characters are the comments,
so search the comments for country-specific characters, and replace them.

But anyway, for me it's nice to know now what the error-msg means.

-----Ursprüngliche Nachricht-----
Von: Jeff Guttadauro [mailto:jtgutt@yahoo.com]
Gesendet: Mittwoch, 11. Juni 2003 15:40
An: Ant Users List
Betreff: 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.

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


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message