ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sann Maung <yangontha5...@yahoo.com>
Subject FTP for Japanese file names
Date Sat, 10 Feb 2007 03:54:40 GMT
I am using FTP task to transfer the files using ant.
Under normal circumstances, it is working fine.
However, if the filenames are in Japanese characters,
(eg. Kanji) then it becomes an error and the file
transfer cannot continue.

<?xml version="1.0" encoding="UTF-8"?>
<project name="transferPut" basedir="." default="ftp">
<target name="ftp">
 <ftp server="xxx"
  userid="yyy"
  password="abcd"
  action="get"
  remotedir="/somedir/"
  newer="true"
  timediffauto="true"
  preservelastmodified="true">
  <fileset dir="../jpnGet/get/">
   <include name="download/**/**"/>
  </fileset>
 </ftp>
</target>
</project>

I thought that kanji needs UTF-16, so I tried to
change the encoding to UTF-16. It causes another
error. Looks like I am not allowed to define in
build.xml file as encoding UTF-16.

I am not sure. Can anybody suggest a way to do it?




 
____________________________________________________________________________________
Have a burning question?  
Go to www.Answers.yahoo.com and get answers from real people who know.

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


Mime
View raw message