title: preg_replace Ñ with correct character
body: <p>I'm trying to replace the value of Ñ in a preg_replace.
  I have this code:</p>
  
  <pre><code>&lt;?php
  $name = 'AVENDAÑO, PAULVIC T.';
  $match = preg_replace('/[^A-Z]/','N',$name);
  
  echo '&lt;pre&gt;';
  print_r($match);
  echo '&lt;/pre&gt;';
  ?&gt;
  </code></pre>
  
  <p>Though variable $name holds AVENDAÑO, PAULVIC T. Still it displays AVENDAÃ‘O, PAULVIC T.</p>
  
  <p>But when I try to use the code above it replaces all non-characters to N.</p>
  
  <p>I know there's something wrong with my regex or does anyone knows any alternative to solve these problem regarding character formatting?</p>