title: Why does PHP's preg_split split the hebrew letter “נ” in UTF-8 when splitting on “\s”?
body: <p>This doesn't work, it turns it to gibberish:</p>
  
  <pre><code>$foo = 'נ';
  $bar = mb_convert_encoding($foo, 'UTF-8', mb_detect_encoding($foo));
  print_r(preg_split('/\s/', $bar));
  </code></pre>
  
  <blockquote>
    <p>Array ( [0] => � [1] => )</p>
  </blockquote>
  
  <p>But this works:</p>
  
  <pre><code>$foo = 'נ';
  $bar = mb_convert_encoding($foo, 'ISO-8859-8', mb_detect_encoding($foo));
  $baz = preg_split('/\s/', $bar);
  echo(mb_convert_encoding($baz[0], 'UTF-8', 'ISO-8859-8'));
  </code></pre>
  
  <blockquote>
    <p>נ</p>
  </blockquote>
  
  <p>The problem is only with the letter "<code>נ</code>". It works fine with all the other Hebrew letters. Is there a solution for that?</p>