title: Store latin characters in php array, then output it correctly to browser, then PDF
body: <p>I have a php array storing french sentences (latin) with translation preparation like:</p>
  
  <pre><code>myarray = array(
            "description" =&gt; "more infos",
            "rule" =&gt; "1",
            "out" =&gt; __("Merci de l’imprimer, à demain, c'est l'été"));
  </code></pre>
  
  <p>The __( is here for future translation purposes. Base language is french.</p>
  
  <p>If i output my text into a PDF using Snappy, i get strange utf8 encoded characters like Ã©</p>
  
  <p>I then added</p>
  
  <pre><code>utf8_decode()
  </code></pre>
  
  <p>to my text before outputting, and it gets much better. But some characters still stay unreadable like </p>
  
  <pre><code>'
  </code></pre>
  
  <p>converted to</p>
  
  <pre><code>?
  </code></pre>
  
  <p>Could you help me understanding how to store my ready for translation text and how to output it correctly ? Do i have to encode it before storing in my array ?</p>
  
  <p>Thank you very much</p>