title: How to detect the encoding of a PPTX file?
body: <p>My question is, <em>how can I get the encoding of a pptx file in Java?</em>
  (I'm using apache poi)</p>
  
  <pre><code>   File f = new File(filename);
     XMLSlideShow ppt = new XMLSlideShow(new FileInputStream(f));
  </code></pre>
  
  <p>The reason why I need to know the encoing is that later on, I post some data of the file which I have saved in a json string and It is at this stage my problem occurs.</p>
  
  <p>When doing a http POST the encoding is changed, and I figured this problem could be solved If I knew the encoding of the data in my json string. Then I could set this encoding in my http POST.</p>
  
  <p><strong>EDIT/CLARIFICATION:</strong></p>
  
  <p>The problem is the swedish letters å,ä and ö.</p>
  
  <p>å becomes Ã¥</p>
  
  <p>ä becomes Ã¤</p>
  
  <p>ö becomes Ã¶</p>