[Webtest] How to set the charset UTF-8 for reading prop files
Marek Dębczyński
Marek Dębczyński
Wed, 21 Nov 2007 15:46:59 +0100
Hi Marc.
Thanks for answer.
My target is set as here:
<!-- Execute Test Case test_001-->
<target name="test_001">
<ant antfile="${useCaseDir}\test_001.xml">
<property file="${propertiesDir}\test_001.prop"/>
</ant>
</target>
how to set the encoding here?
<property name="file.encoding" value="UTF-8"/>
set in main xml doesn't work.
If U will find where is the ISO-8859-1 set as default I will be very happy.
Regards
Marek Debczynski
Marc Guillemot pisze:
> Hi,
>
> seems to be a requirement for Ant. Already had a look there?
>
> Ant's property task expects properties files to be in ISO8859-1.
> According to a quick look at
> org.apache.tools.ant.taskdefs.Property#loadFile, it would be quite easy
> to define a custom version of <property file="..."/> that uses a
> different encoding.
>
> Marc.
>