title: Write non ASCII char with PhoneGap Javascript Image
body: <p>Here is what I'm doing :
  In javascript I ask for an image with AJAX.
  The server php execute the following code :</p>
  
  <pre><code>readfile($pathfile);
  </code></pre>
  
  <p>Then the javascript receive the data, and with Phonegap I try to write it to a file :</p>
  
  <pre><code>var writer = new FileWriter();
  writer.fileName = "./../Documents/" + nameFile;
  writer.write(dataReceived);
  </code></pre>
  
  <p>In fact, it works with ASCII chars, but the function "write" fail with the content of the image received (png format). So I tried to encode the transferred data in Base64, in Hexadécimal and it works. But I don't want to store encoded data because I want to use it later  in "img" tags (html tag). And make something like : </p>
  
  <pre><code>&lt;img src='./../Documents/createdFile.png' /&gt;
  </code></pre>
  
  <p>Do you have any idea on how to write any characters in Phonegap to a file? Or what I'm doing wrong with the FileWriter of PhoneGap ? I know the way to do something like src='Image.php', but I have to store files on the device.</p>
  
  <p>I've got the version 0.9x of Phonegap (included with Dreamweaver). Thanks in advance.</p>