{"id":185,"date":"2005-01-25T17:34:34","date_gmt":"2005-01-25T16:34:34","guid":{"rendered":"http:\/\/frenchfragfactory.net\/ozh\/archives\/2005\/01\/25\/remove-invalid-characters-in-utf-8\/"},"modified":"2007-08-03T22:02:50","modified_gmt":"2007-08-03T20:02:50","slug":"remove-invalid-characters-in-utf-8","status":"publish","type":"post","link":"https:\/\/planetozh.com\/blog\/2005\/01\/remove-invalid-characters-in-utf-8\/","title":{"rendered":"Remove Invalid Characters in UTF-8"},"content":{"rendered":"<p>Via <a href=\"http:\/\/blog.bitflux.ch\/archive\/how-to-get-rid-of-invalid-utf-8-characters.html\">How to get rid of invalid UTF-8 characters<\/a>: to remove them, for example after aggregating del.icio.us or rss feeds, simply use this trick :<\/p>\n<div id=\"ig-sh-1\" class=\"syntax_hilite\">\n\n\t\t<div class=\"toolbar\">\n\n\t\t<div class=\"view-different-container\">\n\t\t\t\t\t\t<a href=\"#\" class=\"view-different\">&lt; View <span>plain text<\/span> &gt;<\/a>\n\t\t\t\t\t<\/div>\n\n\t\t<div class=\"language-name\">php<\/div>\n\n\t\t\n\t\t<br clear=\"both\">\n\n\t<\/div>\n\t\n\t<div class=\"code\">\n\t\t<ol class=\"php\" style=\"font-family:monospace\"><li style=\"font-weight: normal;vertical-align:top\"><div style=\"font: normal normal 1em\/1.2em monospace;margin:0;padding:0;background:none;vertical-align:top\"><span style=\"color: #000088\">$text<\/span> <span style=\"color: #339933\">=<\/span> <span style=\"color: #990000\">iconv<\/span><span style=\"color: #009900\">&#040;<\/span><span style=\"color: #0000ff\">&quot;UTF-8&quot;<\/span><span style=\"color: #339933\">,<\/span><span style=\"color: #0000ff\">&quot;UTF-8\/\/IGNORE&quot;<\/span><span style=\"color: #339933\">,<\/span><span style=\"color: #000088\">$text<\/span><span style=\"color: #009900\">&#041;<\/span><span style=\"color: #339933\">;<\/span><\/div><\/li>\n<\/ol>\t<\/div>\n\n<\/div>\n\n","protected":false},"excerpt":{"rendered":"<p>Simple trick to remove invalid characters<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[2,10,76,228],"class_list":["post-185","post","type-post","status-publish","format-standard","hentry","tag-code","tag-php","tag-tips","tag-utf-8"],"_links":{"self":[{"href":"https:\/\/planetozh.com\/blog\/wp-json\/wp\/v2\/posts\/185","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/planetozh.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/planetozh.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/planetozh.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/planetozh.com\/blog\/wp-json\/wp\/v2\/comments?post=185"}],"version-history":[{"count":0,"href":"https:\/\/planetozh.com\/blog\/wp-json\/wp\/v2\/posts\/185\/revisions"}],"wp:attachment":[{"href":"https:\/\/planetozh.com\/blog\/wp-json\/wp\/v2\/media?parent=185"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/planetozh.com\/blog\/wp-json\/wp\/v2\/categories?post=185"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/planetozh.com\/blog\/wp-json\/wp\/v2\/tags?post=185"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}