Ahhh, did some digging and figured it out!
Apple OSX's java interpreter's default charset is MacRoman
I modified bin/ant to add -Dfile.encoding=UTF-8 as an argument for the java
interpreter, and it works fine now:
hitman@bigdog ~/t/t/apache-ant-1.8.2$ bin/ant foo2
Buildfile: /Users/hitman/t/t/ap
> The ? implies to me that your shell might be trying to display the UTF-8
> properly, but can't, so it shows the question mark.
>
> Instead of looking at the file with cat:
> - Does the file have one byte for that mark, (that would be the question
> mark) or 3? - You should be able to count ho
o: Ant Users List
> Subject: Re: Question regarding UTF-8 and property files
>
> Works for me:
>
>
>
>
> encoding="iso-8859-1"/>
>
>
>
>
>
>
>
> foo:
> [echo] [Test ế]
>
>
On Fri, 27 May 2011, Scot P. Floess wrote:
> Works for me:
>
>
>
>
>
>
>
>
>
>
Hmm. Yup. I actually just went to a linux system and ran the exact same
example using the exact same ant version and it works fine over there. The
linux box is using the Sun
t;
>> Rob
>>
>> On Fri, 27 May 2011, Echlin, Robert wrote:
>>
>> Hi Rob,
>>> Maybe you need to start the file with the Byte Order Mark?
>>> This is apparently more likely if you are on Windows.
>>>
>>> http://en.wikipedia.org/wiki/U
regarding UTF-8 and property files
So I'm having an issue with UTF-8 and property files. Given
the test build.xml file:
and the file foo.properties:
#foo.propert=Test ế
foo.property=Test \u1EBF
When I run ant (1.8.2) for this target and look in test.txt, I see:
Test ?
me too
On Fri, May 27, 2011 at 8:05 PM, Rob J wrote:
> On Fri, 27 May 2011, Alexandre Priou wrote:
>
> > no test it's the game
>
> Sorry, not following you there...? What do you mean?
>
> thanks,
> rob
>
> -
> To unsubscribe, e
On Fri, 27 May 2011, Alexandre Priou wrote:
> no test it's the game
Sorry, not following you there...? What do you mean?
thanks,
rob
-
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: us
no test it's the game
On Fri, May 27, 2011 at 7:56 PM, Rob J wrote:
> On Fri, 27 May 2011, Scot P. Floess wrote:
>
> > Try ISO-8859-1 as your encoding... Someone I work with was
> > attempting to use property files with a similar issue (but directly
> > within Java). He used the ISO-8859-1 enc
On Fri, 27 May 2011, Scot P. Floess wrote:
> Try ISO-8859-1 as your encoding... Someone I work with was
> attempting to use property files with a similar issue (but directly
> within Java). He used the ISO-8859-1 encoding and it fixed his
> problem...
No dice. I tried changing both the encodin
n.wikipedia.org/wiki/UTF-8#Byte_order_mark
>
> Rob
>
>
> > -Original Message-
> > From: Rob J [mailto:r...@dcsportbikes.net]
> > Sent: Friday, May 27, 2011 12:03 PM
> > To: user@ant.apache.org
> > Subject: Question regarding UTF-8 and property file
Try ISO-8859-1 as your encoding... Someone I work with was attempting to
use property files with a similar issue (but directly within Java). He
used the ISO-8859-1 encoding and it fixed his problem...
On Fri, 27 May 2011, Rob J wrote:
So I'm having an issue with UTF-8 and property files.
3 PM
> To: user@ant.apache.org
> Subject: Question regarding UTF-8 and property files
>
> So I'm having an issue with UTF-8 and property files. Given
> the test build.xml file:
>
>
>
>
>
>
>
>
>
> and the file foo.proper
So I'm having an issue with UTF-8 and property files. Given the test
build.xml file:
and the file foo.properties:
#foo.propert=Test ế
foo.property=Test \u1EBF
When I run ant (1.8.2) for this target and look in test.txt, I see:
Test ?
every time. It is not interpreting t
14 matches
Mail list logo