<?php $string = 'a'.chr(245); var_dump( mb_check_encoding($string) ); // iconv() is undefined here //var_dump(@iconv('UTF-8', 'UTF-8', $string) !== false); if (preg_match('##u', $string)) { print "OK\n"; } else { print "KO\n"; } var_dump( json_encode($string) );
You have javascript disabled. You will not be able to edit any code.