You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by 1800 tbsfunny <18...@gmail.com> on 2006/06/14 17:07:57 UTC

file encoding to UTF-8

I am trying to set my ant system property "file.encoding" to UTF-8.
Currently it is set to Cp1252, which I think is the Windows default.

How can I modify the ant system property "file.encoding"?

-Jed

Re: file encoding to UTF-8

Posted by 1800 tbsfunny <18...@gmail.com>.
Thanks Antonie.

That helps. Both the solutions work.

-Jed

On 6/14/06, Antoine Levy-Lambert <an...@gmx.de> wrote:
>
> Hi,
> I think file.encoding is not an ant system property, rather a java
> property.
> Try
> ant -D"file.encoding=UTF-8"
>
> or
>
> set ANT_OPTS=-D"file.encoding=UTF-8"
> ant
>
> Regards,
>
> Antoine
> -------- Original-Nachricht --------
> Datum: Wed, 14 Jun 2006 11:07:57 -0400
> Von: 1800 tbsfunny <18...@gmail.com>
> An: Ant Users List <us...@ant.apache.org>
> Betreff: file encoding to UTF-8
>
> > I am trying to set my ant system property "file.encoding" to UTF-8.
> > Currently it is set to Cp1252, which I think is the Windows default.
> >
> > How can I modify the ant system property "file.encoding"?
> >
> > -Jed
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

Re: file encoding to UTF-8

Posted by Antoine Levy-Lambert <an...@gmx.de>.
Hi,
I think file.encoding is not an ant system property, rather a java property.
Try 
ant -D"file.encoding=UTF-8"

or 

set ANT_OPTS=-D"file.encoding=UTF-8"
ant

Regards,

Antoine 
-------- Original-Nachricht --------
Datum: Wed, 14 Jun 2006 11:07:57 -0400
Von: 1800 tbsfunny <18...@gmail.com>
An: Ant Users List <us...@ant.apache.org>
Betreff: file encoding to UTF-8

> I am trying to set my ant system property "file.encoding" to UTF-8.
> Currently it is set to Cp1252, which I think is the Windows default.
> 
> How can I modify the ant system property "file.encoding"?
> 
> -Jed

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