ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Panayotis Katsaloulis <panayo...@panayotis.com>
Subject Escaped unicode properties problem under Mac
Date Mon, 10 May 2010 07:42:53 GMT
Hello all!

I am struggling for some time to find a solution, on how to properly load unicode escaped
properties with ant.
I have checked exactly the same files under  linux and work as expected, but I need this script
to work under Mac.
To demonstrate this problem, I have created the minimum build.xml and properties file, so
here it is:

build.xml:
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." default="test" name="unicodetest">
	<property file="test.properties"/>
	<target name="test">
		<echo message="${aproperty}" file="out"/>
	</target>
</project>

test.properties:
aproperty=\u03AC


This will create a new file, named "out" with the greek ALPHA-TONOS  letter:  ά http://www.fileformat.info/info/unicode/char/03ac/index.htm


Unfortunately, under Mac it produces a "C0" character.

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


Mime
View raw message