1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
<?php class Convert { public static function decodePseudoUTF($string) { $ret = str_replace( ['ó','ś','ę','ą','ń','ż','ć','ź','Ó','Ś','Ę','Ą','Ń','Ż','Ć','Ź','ń','ń','e̜'], ['ó','ś','ę','ą','ń','ż','ć','ź','Ó','Ś','Ę','Ą','Ń','Ż','Ź','Ć','ń','ń','ę'], $string); return $ret; } } ?>