Ignore:
Timestamp:
2014-05-09T14:36:55+02:00 (10 years ago)
Author:
Don-vip
Message:

see #8465 - Use of new Java 7 zip constructors allowing to specify a charset for entries names

Location:
trunk/src/org/openstreetmap/josm/gui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/io/DownloadFileTask.java

    r7033 r7089  
    1414import java.net.MalformedURLException;
    1515import java.net.URL;
     16import java.nio.charset.StandardCharsets;
    1617import java.util.Enumeration;
    1718import java.util.zip.ZipEntry;
     
    169170     */
    170171    public static void unzipFileRecursively(File file, String dir) throws IOException {
    171         try (ZipFile zf = new ZipFile(file)) {
     172        try (ZipFile zf = new ZipFile(file, StandardCharsets.UTF_8)) {
    172173            Enumeration<? extends ZipEntry> es = zf.entries();
    173174            while (es.hasMoreElements()) {
  • trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/MapCSSStyleSource.java

    r7083 r7089  
    162162            File file = in.getFile();
    163163            Utils.close(in);
    164             zipFile = new ZipFile(file);
     164            zipFile = new ZipFile(file, StandardCharsets.UTF_8);
    165165            zipIcons = file;
    166166            ZipEntry zipEntry = zipFile.getEntry(zipEntryPath);
Note: See TracChangeset for help on using the changeset viewer.