$string = iconv("UTF-8", "UTF-8//IGNORE", $string);
I thought this code would remove invalid UTF-8 characters, but it creates [E_NOTICE] "iconv(): Detected an illegal character in input string" . What am I missing, how to remove a string from illegal characters correctly?
php utf-8 iconv
Znarkus Feb 21 '12 at 10:29 2012-02-21 10:29
source share