<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="http://www.zeitoun.net/lib/exe/css.php?s=feed" type="text/css"?>
<feed version="0.3" xmlns="http://purl.org/atom/ns#">
    <title>Zeitoun.net articles:clear-invalid-utf8</title>
    <tagline></tagline>
    <link rel="alternate" type="text/html" href="http://www.zeitoun.net/"/>
    <id>http://www.zeitoun.net/</id>
    <modified>2026-04-28T16:04:19+02:00</modified>
    <generator>FeedCreator 1.7.2-ppt DokuWiki</generator>
    <entry>
        <title>How to clear invalid UTF8 characters in PHP ?</title>
        <link rel="alternate" type="text/html" href="http://www.zeitoun.net/articles/clear-invalid-utf8/start?rev=1269637879&amp;do=diff"/>
        <created>2010-03-26T22:11:19+02:00</created>
        <issued>2010-03-26T22:11:19+02:00</issued>
        <modified>2010-03-26T22:11:19+02:00</modified>
        <id>http://www.zeitoun.net/articles/clear-invalid-utf8/start?rev=1269637879&amp;do=diff</id>
        <summary>Supposing your want to be sure that $string is composed by valid UTF-8 characters:

$string = iconv(&quot;UTF-8&quot;,&quot;UTF-8//IGNORE&quot;,$string);

If you want to remove none ISO-8859-1 characters from this string:

$string = iconv(&quot;UTF-8&quot;,&quot;ISO-8859-1//IGNORE&quot;,$string);
$string = iconv(&quot;ISO-8859-1&quot;,&quot;UTF-8&quot;,$string);</summary>
    </entry>
</feed>
