title: Writing to a .doc file
body: <p>I am trying to write an Arabic sentence to .doc file. But each time I open the .doc file it shows a message that says file conversion and it asks in which Unicode I want to show the .doc file so I keep the Unicode(UTF-8) and everything goes okay. </p>
  
  <p>Here's the code where I write to the file:</p>
  
  <pre><code>PrintWriter print = new PrintWriter(new FileOutputStream(newFile+".doc", true));
  print.println(toString());
  print.println();
  print.close();
  </code></pre>
  
  <p>Where <code>newFile</code> is the file chosen by the user (no extension added from the user) and  <code>toString()</code> is a function that combines the whole sentence to be written on the file.</p>
  
  <p>My problem is, do I have to see this file conversion each time I open the .doc file?</p>
  
  <p>I already tried to open properties of the project in net beans and put coding : UTF-8!</p>
  
  <p>Can anyone help?</p>