1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| $post_content = stripslashes($post_content);
$post_content = str_replace(array("â","â?","â","â","â","â¦"," "), array('"','"','´','','','...',' '), $post_content);
// $post_content = str_replace(array('Ä', 'ä', 'Ö', 'ö', 'Ü', 'ü', 'ß'), array('Ae', 'ae', 'Oe', 'oe', 'Ue', 'ue', 'ss'), $post_content);
$post_content = str_replace(array(chr(196), chr(228), chr(214), chr(246), chr(220), chr(252), chr(223)), array(utf8_encode('Ä'), utf8_encode('ä'), utf8_encode('Ö'), utf8_encode('ö'), utf8_encode('Ü'), utf8_encode('ü'), utf8_encode('ß')), $post_content);
// $post_content = str_replace(array(utf8_encode('Ä'), utf8_encode('ä'), utf8_encode('Ö'), utf8_encode('ö'),utf8_encode('Ü'), utf8_encode('ü'), utf8_encode('ß'), utf8_encode('?')), array('Ae', 'ae', 'Oe', 'oe', 'Ue', 'ue', 'ss', '?'), $post_content );
$post_content = utf8_decode($post_content);
$post_content_filtered = apply_filters('the_content', $post_content);
$post_content_filtered = str_replace(']]>', ']]>', $post_content_filtered);
$post_title = stripslashes($post_title);
$post_title = str_replace(array("â","â?","â","â","â","â¦"), array('"','"','´','','','...'), $post_title);
// $post_title = str_replace(array('Ä', 'ä', 'Ö', 'ö', 'Ü', 'ü', 'ß'), array('Ae', 'ae', 'Oe', 'oe', 'Ue', 'ue', 'ss'), $post_title);
$post_title = str_replace(array(chr(196), chr(228), chr(214), chr(246), chr(220), chr(252), chr(223)), array(utf8_encode('Ä'), utf8_encode('ä'), utf8_encode('Ö'), utf8_encode('ö'), utf8_encode('Ü'), utf8_encode('ü'), utf8_encode('ß')), $post_title);
// $post_title = str_replace(array(utf8_encode('Ä'), utf8_encode('ä'), utf8_encode('Ö'), utf8_encode('ö'),utf8_encode('Ü'), utf8_encode('ü'), utf8_encode('ß'), utf8_encode('?')), array('Ae', 'ae', 'Oe', 'oe', 'Ue', 'ue', 'ss', '?'), $post_title );
$post_title = utf8_decode($post_title); |
Partager