title: Problem with Zend Framework and UTF-8 characters (æøå)
body: <p>Hope here are some with more knowledge about Zend Framework than me, I've been trying to search for the answer but I'm not able to fin anything anywhere.</p>
  
  <p><strong>Problem:</strong></p>
  
  <p>When adding the content of a Zend_Form to the database with the use of Zend_Db the characters æ ø å  is replaced by Ã¸Ã¦Ã¥</p>
  
  <p><strong>System</strong></p>
  
  <ul>
  <li>WampServer 2.0i
  
  <ul>
  <li>Apache 2.2.11</li>
  <li>MySQL 5.1.36</li>
  <li>PHP 5.3.0</li>
  </ul></li>
  <li>Zend Framework 1.10.0</li>
  </ul>
  
  <p><strong>Modifications done to make it work (which it does not)</strong></p>
  
  <p>application.ini</p>
  
  <pre><code>resources.db.adapter = "pdo_mysql"
  resources.db.params.host = "localhost"
  resources.db.params.username = "//Brukernavn//"
  resources.db.params.password = "//Passord//"
  resources.db.params.dbname = "//Database//"
  resources.db.params.charset = "utf8"
  resources.db.params.driver_options.1002 = "SET NAMES utf8"
  resources.db.isDefaultTableAdapter = true
  </code></pre>
  
  <p>To all forms I've added</p>
  
  <pre><code>-&gt;setAttrib('accept-charset', 'utf-8');
  </code></pre>
  
  <p>And in Bootstrap.php I've placed the following code:</p>
  
  <pre><code>$view-&gt;setEncoding('UTF-8');
  $view-&gt;doctype('XHTML1_STRICT');
  $view-&gt;headMeta()-&gt;appendHttpEquiv('Content-Type', 'text/html;charset=utf-8');
  </code></pre>
  
  <p>The database is set to utf8_general_ci</p>
  
  <p>Anyone have a tip on how to get it to work?</p>
  
  <p><strong>Soulution:</strong></p>
  
  <p>It's a bug in PHP 5.3.0 and 5.3.1 ( <a href="http://bugs.php.net/bug.php?id=47224" rel="noreferrer">http://bugs.php.net/bug.php?id=47224</a>
  ) so I choose to downgrade to 5.2.11, and all worked like a charm.</p>
  
  <p>Thanks to Pekka and Greg K for pointing me in the right direction.</p>