ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 7825] - poor error message on bad xml declaration (encoding)
Date Mon, 08 Apr 2002 04:10:12 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7825>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7825

poor error message on bad xml declaration (encoding)





------- Additional Comments From steve_l@iseran.com  2002-04-08 04:10 -------
We can always do with more helpful messages; if you can come up with a patch 
which is consistent then it will be considered for inclusion.

Now, can I take exception to your comment that ant changed its behavior from 
the past, based on some magazine article. Ant hands off XML file parsing to 
XML parsers, all of which implement the XML spec hosted at the w3c. This spec 
says explicitly that the default file format is UTF-8 unless otherwise stated 
(or it detects that the file is stored in UTF-16 format by looking at the 
first few characters). Knowing this fact will not only let you work with ant, 
it will let you use XML properly.

That means ant has always parsed UTF-8 encoded content correctly, and always 
will; anything else would violate the XML specification. If the article you 
read showed Japanese characters in the file, then they saved the file in UTF-8 
format.

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message