Problem description: When the console outputs Chinese characters (for example, juint outputs 2 characters), it stops running the previous step of the output Chinese characters.
Solution:
First
On the common tab of ant settings, set console encoding to gb18030 (or GBK) encoding.
When the console encoding in the common tab of ant does not have gb18030 (or GBK), go to eclipse->
Windows> preference> General> workspace option text file
Encoding to gb18030 (or GBK) application, and then back to the UTF-8
Second
On the main tab of ant settings, enter-duser. language = EN in arguments.
Third
In the javac tag of the build. xml file, add
<Javac...>
...
<Compilerarg value = "-J-Duser.language = EN"/>
</Javac>
Fourth
You can explicitly use gb18030 (or GBK) encoding in the XML Declaration of the build. xml file.
<? XML version = "1.0" encoding = "gb18030"?>
Finally, if you use the command line to run ant, you do not need to change anything.