title: Weird Characters when Writing to File (Mac) (Java)
body: <p>I'm working on Mac (Snow Leopard). Using Java, I clear file contents and then write to it. 
  That's the code to clear the file:</p>
  
  <pre><code>   new File(FileName).delete();
     new File(FileName).createNewFile();
  </code></pre>
  
  <p>Afterwards, when I write to the file, I find weird characters; for example:
  instead of writing: </p>
  
  <blockquote>
    <p>expected ‘=’, ‘,’, ‘;’, ‘asm’</p>
  </blockquote>
  
  <p>it writes:</p>
  
  <blockquote>
    <p>expected ‚Äò=‚Äô, ‚Äò,‚Äô, ‚Äò;‚Äô, ‚Äòasm‚Äô</p>
  </blockquote>
  
  <p>I'm sure that createNewFile() causes the problem, because no problem occurs when I write the same text to a file I created manually. What can I do?</p>
  
  <p>Thanks.</p>