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
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 how many bytes
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
no work for you !!! sorry
i d'ont want this shit sorry , it s clear ?
On Fri, May 27, 2011 at 8:11 PM, Scot P. Floess wrote:
> Works for me:
>
>
>
>
>
>
>
>
>
>
>
>
> foo:
> [echo] [Test ế]
>
>
>
> On Fri, 27 May 2011, Rob J wrote:
>
> This is on a Unix b
Works for me:
foo:
[echo] [Test ế]
On Fri, 27 May 2011, Rob J wrote:
This is on a Unix box, there is no BOM in foo.properties.
I just added the BOM to the file:
hitman@bigdog ~/t$ file foo.properties
foo.properties: UTF-8 Unicode (with BOM) t
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
This is on a Unix box, there is no BOM in foo.properties.
I just added the BOM to the file:
hitman@bigdog ~/t$ file foo.properties
foo.properties: UTF-8 Unicode (with BOM) text
hitman@bigdog ~/t$ ant foo
Buildfile: /Users/hitman/t/build.xml
foo:
BUILD SUCCESSFUL
Total time: 0 seconds
hitman@bi
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.
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/UTF-8#Byte_order_mark
Rob
> -Original Message-
> From: Rob J [mailto:r...@dcsportbikes.net]
> Sent: Friday, May 27, 2011 12:03 PM
> To:
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