title: Allow special character in CodeIgniter
body: <p>I have problem: if I use <code>preg_replace</code> with plain PHP, it works. However in CodeIgniter, it doesn't work. I've searched and did some changes such as: make general UTF-8, set <code>$config['permitted_uri_chars']</code>, use <code>header('Content-type: text/html; charset=utf-8');</code> and use <code>meta http-equiv="Content-Type" content="text/html; charset=utf-8"</code>...</p>
  
  <p>...but none of those fixed the problem.</p>
  
  <p>Example:</p>
  
  <pre><code>$text='namé';
  echo $text;
  </code></pre>
  
  <p>and the result is</p>
  
  <pre><code>nam�
  </code></pre>
  
  <p>The last character in that string isn't being rendered properly.</p>
  
  <p>Can anyone help or point me in the right direction as to how to allow writing special characters in CodeIgniter?</p>