title: Is PHP serialize function compatible UTF-8?
body: <p>I have a site I want to migrate from <strong>ISO</strong> to <strong>UTF-8</strong>.</p>
  
  <p>I have a record in database indexed by the following primary key :</p>
  
  <pre><code>s:22:"Informations générales";
  </code></pre>
  
  <p>The problem is, now (with UTF-8), when I serialize the string, I get :</p>
  
  <pre><code>s:24:"Informations générales";
  </code></pre>
  
  <p>(notice the size of the string is now the number of bytes, not string length)</p>
  
  <p><strong>So this is not compatible with non-utf8 previous records !</strong></p>
  
  <p>Did I do something wrong ? How could I fix this ?</p>
  
  <p>Thanks</p>