PCRE Pattern to locate bad bytes in a UTF-8 string comes from W3C
FAQ: Multilingual Forms (modified to include full ASCII range)
public utf8_bad_replace ( string $str ) : string | ||
$str | string | String to remove bad UTF-8 bytes from |
return | string | UTF-8 string |