title: set global encoding in Zend Framework
body: <p>My bootstrap sets encoding for all views:</p>
  
  <pre><code>protected function _initView () {
      $view = new Zend_View();
      // snip...
      $view-&gt;setEncoding('utf-8');
      // snip...
      return $view;
  }
  </code></pre>
  
  <p>However, this does not set encoding for my form validators. The <code>StringLength</code> uses its default encoding (I'm not sure which that is) and it counts diacritics as two characters.</p>
  
  <p>I know I can set the <code>'encoding' =&gt; 'utf-8'</code> option when creating the validator, but it's kind of pesky to update all validators across my entire (huge) application. Is there a way to set the encoding for all validators at the same time?</p>