- str_replace: documentation ( source)
- preg_replace: documentation ( source)
<?php
$string = "1’With the youth in ’68 and ‘86 汉语 �...";
$string = preg_replace('/[\x00-\x1F\x7F-\xFF]/', '', $string);
$string = str_replace("�","", $string);
print($string);
print ord("�");