title: Java : Read a file with special characters from a Zip file
body: <p>I have a zip file with the following content:</p>
  <p><a href="https://i.stack.imgur.com/wWYZS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wWYZS.png" alt="enter image description here" /></a></p>
  <p>The content inside <em>Temperature_°C.log</em> : <strong>unit°C</strong></p>
  <p>and i use the following code to print all the file names inside a zip:</p>
  <pre><code>public static void main(String[] args) {
          try {
              ZipFile zipFile = new ZipFile(&quot;Test.zip&quot;, Charset.forName(&quot;UTF-8&quot;));
  
              Enumeration&lt;? extends ZipEntry&gt; entries = zipFile.entries();
              while (entries.hasMoreElements()) {
                  try {
                      ZipEntry zipEntry = entries.nextElement();
                      System.out.println(zipEntry.getName());
  
                  } catch (IllegalArgumentException e) {
                      e.printStackTrace();
                  }
              }
              zipFile.close();
          } catch (IOException ex) {
              Logger.getLogger(ZipTest.class.getName()).log(Level.SEVERE, null, ex);
          }
      }
  </code></pre>
  <p>and at line : <code>ZipEntry zipEntry = entries.nextElement();</code> for the <strong>Temperature_°C.log</strong> it throws <code>java.lang.IllegalArgumentException: MALFORMED</code></p>
  <p>I tried <code>UTF-8</code> and it is not working. When i tried with <code>ISO-8859-1</code> it displays junk character.</p>
  <p>How should i solve this ?</p>