ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Songlin Wei <>
Subject ant encoding problem
Date Sun, 11 Dec 2011 15:04:22 GMT
Hello Everyone,

I have problem with character encoding. My build.xml is like following.

<?xml version="1.0" encoding="UTF-8" ?>
<project name="enc" basedir="." default="e">

<target name="e">
       <echo>Display an unicode characters like: 魏松林</echo>


When I execute "ant" in my command line terminal. I get question marks where the Chinese characters
are supposed to be shown. And I also tried "ant -Dfile.encoding=utf-8" with no effect.

My terminal has to problem displaying Chinese characters, Because I  run "cat build.xml" they
show correctly.

Please someone help :(

Thank you 
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message