ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r1149009 - /ant/core/trunk/manual/Tasks/zip.html
Date Thu, 21 Jul 2011 02:21:59 GMT
Author: bodewig
Date: Thu Jul 21 02:21:57 2011
New Revision: 1149009

URL: http://svn.apache.org/viewvc?rev=1149009&view=rev
Log:
java.util.zip now supports the EFS flag, http://blogs.oracle.com/xuemingshen/entry/non_utf_8_encoding_in

Modified:
    ant/core/trunk/manual/Tasks/zip.html

Modified: ant/core/trunk/manual/Tasks/zip.html
URL: http://svn.apache.org/viewvc/ant/core/trunk/manual/Tasks/zip.html?rev=1149009&r1=1149008&r2=1149009&view=diff
==============================================================================
--- ant/core/trunk/manual/Tasks/zip.html (original)
+++ ant/core/trunk/manual/Tasks/zip.html Thu Jul 21 02:21:57 2011
@@ -337,6 +337,12 @@ archive.</p>
     jars from your CLASSPATH reads and writes UTF-8 names, it doesn't
     set or recognize any flags or unicode extra fields.</li>
 
+  <li>Starting with Java7 <code>java.util.zip</code> writes UTF-8 by
+    default and uses the language encoding flag.  It is possible to
+    specify a different encoding when reading/writing ZIPs via new
+    constructors.  The package now recognizes the language encoding
+    flag when reading and ignores the Unicode extra fields.</li>
+
   <li>7Zip writes CodePage 437 by default but uses UTF-8 and the
     language encoding flag when writing entries that cannot be encoded
     as CodePage 437 (similar to the zip task with fallbacktoUTF8 set
@@ -367,8 +373,8 @@ archive.</p>
 <p>If you are creating jars, then java.util.zip is your main
   consumer.  We recommend you set the encoding to UTF-8 and keep the
   language encoding flag enabled.  The flag won't help or hurt
-  java.util.zip but archivers that support it will show the correct
-  file names.</p>
+  java.util.zip prior to Java7 but archivers that support it will show
+  the correct file names.</p>
 
 <p>For maximum interop it is probably best to set the encoding to
   UTF-8, enable the language encoding flag and create unicode extra



Mime
View raw message