在不破坏其他外来字符的情况下删除不需要的 unicode 字符的最佳方法是什么?
็็็็็็็็็็็็็็็็็็็็็็็็็็็
如果您过滤正确的 Unicode 范围,这应该有效:
$str = 'Your string with Unicode symbols' preg_replace('/[\x00-\x1F\x80-\xFF]/', '', $str);
https://3v4l.org/EY06F
http://php.net/manual/en/function.preg-replace.php