title: Gettext not detecting utf8 properly in PHP
body: <p>I have a PHP application using Gettext as the i18n engine. The translation works fine, the only problem is that I'm having encoding issues with UTF8 characters. My PHP code to load gettext is something like this:</p>
  
  <pre><code>bindtextdomain( $domain, PATH_BASE . DS . "language" . DS );
  $this-&gt;utf8Encode = strtolower($encoding) == "utf-8";
  bind_textdomain_codeset($domain, $encoding);
  
  textdomain($domain);
  </code></pre>
  
  <p>My templates render the pages using the utf8 charset and I've tried just about anything to load the proper charset. For the current locale I'm loading SL_sl, the names appear correctly but have issues with UTF8 chars, so where it should appear <code>Država</code>, it shows up <code>Dr?ava</code></p>