I put some Chinese in .vm file and these Chinese charaters become monster
ones after .vm file was copied to Tomcat folder. I checked build file of
1.9.4(Spring+Hibernate, XP SP2), only place involving in .vm file is as
below. 

<copy todir="${build.dir}/web/classes" includeEmptyDirs="no">
            <fileset dir="web/WEB-INF/classes">
                                <!-- Fuel -->
                            <exclude name="*zh_CN.properties"/>
                <exclude name="ApplicationResources_de.properties"/>
                <exclude name="ApplicationResources_fr.properties"/>
                <exclude name="ApplicationResources_nl.properties"/>
                <exclude name="ApplicationResources_pt*.properties"/>
                <include name="*.properties"/>
                <include name="*.xml"/>
                <include name="*.vm"/>
            </fileset>
            <filterset refid="variables.to.replace"/>
        </copy>

Why a copy task will change charaters? How can I tell Ant to use right
encoding? I have tried put Chinese encoding="GB2312" at begining of build
file instead of UTF-8, but still failed. Any idea? Thanks!
-- 
View this message in context: 
http://www.nabble.com/.vm-content-changed-in-copy-task-tf4246503s2369.html#a12084925
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to