YUI compressor is a JAVA jar that requires JAVA 1.4. If you have JAVA in your classpath, you can use the following command:
java -jar pathToJar/yuicompressor-2.2.jar ––charset UTF-8 -o pathToOutput/filename pathToInput
If you use ant to build, then you might find the following helpful:
<java jar="pathToJar/yuicompressor-2.2.jar" fork="true" failonerror="true" output="pathToOutput/filename"> <arg value="––charset" /> <arg value="UTF-8" /> <arg value="pathToInput/filename" /> </java>
One important thing to note is that if you don&rsquot;t include the "––charset <charset>" option, the compressor with print
"\n[INFO] Using charset UTF-8"