ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lokesh Jain <>
Subject Re: Incorrect reading of property containing accented chars from by custom task
Date Mon, 23 Apr 2012 06:58:07 GMT
I doubly checked, the file is encoded in ISO 8859-1 for 
both Windows and Linux installations. For a consistent check, I used 
Mozilla Firefox -> View Page Info option.


On 4/22/2012 10:26 PM, Stefan Bodewig wrote:
> 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:
> For additional commands, e-mail:

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

View raw message