title: php with special characters like ñ
body: <p>At first I thought the problem was when I return echo json_encode($row) from an ajax call that results with ñ are changed to NULL. But after testing I found out that the problem exists way before that.</p>
  
  <p>In a sample php file with:</p>
  
  <pre><code>$test = "Nuñez"
  echo $test
  </code></pre>
  
  <p>the result is just Nu�ez</p>
  
  <p>I've searched around but none of the suggested solutions work. Like:</p>
  
  <pre><code>mb_internal_encoding('UTF-8');
  mb_http_output('UTF-8');
  mb_http_input('UTF-8');
  mb_language('uni');
  mb_regex_encoding('UTF-8');
  ob_start('mb_output_handler');
  </code></pre>
  
  <p>or <code>&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;</code>, or <code>header('content-type: text/html; charset: utf-8');</code>. And some more solutions that I've already forgotten, believe me I tried a lot.</p>
  
  <p>That's just the beginning of it, I'm hoping that won't be a problem with mysql since my database is in utf-8 so is my $mysqli charset. But I think I can't say the same for ajax json_encode. But nevermind, one problem at a time. Can anybody please help me. Thanks a lot!</p>
  
  <p><em><strong>PROBLEM SOLVED</em></strong> I just had to set "Encode in UTF-8" in Notepad++, as it was in "Encode in ANSI" before.</p>