Converting a .docx to html and I am getting unreadable text
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/227236/convert-word-doc-to-html-programmatically-in-java">Convert Word doc to HTML programmatically in Java</a>  </p>
</blockquote>



<p>I have a program that is taking a .docx file and opening as an .html file but when converting to html all I get is unreadable strings.  I am needing the html of this file as I need to parse it later.  When I use the method below to open the file I get unreadable text such as : úL]iN?#tBd!?^ý    ?e"0©?®??AäúsIp?¸ü?D?ÂÓâ¨\Dâ>½??Eâcr&amp;Æl\Fâÿ2qJ?U ??IúK&amp;þIb</p>

<pre><code>    FileInputStream fileInput = null;
    BufferedInputStream myBuffer = null;
    DataInputStream dataInput = null;
    fileInput = new FileInputStream(selectedFile);
    myBuffer = new BufferedInputStream(fileInput);
    dataInput = new DataInputStream(myBuffer);
    StringBuilder nHtmlText = new StringBuilder();
    while (dataInput.available() != 0) {
        System.out.println(dataInput.readLine());
        nHtmlText.append(dataInput.readLine());
    }
    htmlText = nHtmlText.toString();
</code></pre>

<p>Is there someway to get a clean readable html file for parsing and saving out of this?</p>
