ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Incorrect reading of property containing accented chars from build.properties by custom task
Date Sun, 22 Apr 2012 16:56:56 GMT
On 2012-04-21, Lokesh Jain wrote:

> Thank you for your suggestion, but I think the sample chars I used -
> "ÀÁÂ", can be directly represented in ISO 8859-1, so it should not be
> this problem.

The question is not whether the characters can be represented in
ISO-8859-1 but rather whether they are.

If you write the properties file directly (not using the Properties#save
or store methods) and don't specify the encoding for the file you write
it will end up being written with the platform's native encoding.  For
Windows this may happen to be ISO-8859-1 or a close relative while it
most likely is UTF-8 on your Linux machine.

If the file is not encoded in ISO-8859-1 it is a bug in the task that is
writing the file.

Stefan

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


Mime
View raw message