ayoksus Posted July 9, 2013 Share Posted July 9, 2013 I take the article from RSS feeds, and I am not able to remove this character. I have tried this iconv( "UTF-8", "ISO-8859-1//IGNORE", $string ), however, I still get Jakarta�s instead of Jakarta�s in http://www.indonesiaah.com/articles/destinations/3/jakarta%C3%A2%EF%BF%BD%EF%BF%BDs-neo-gothic-catholic-cathedral-.htm. Does anyone have the solution for this problem? Thank you. Link to comment https://forums.phpfreaks.com/topic/279990-how-can-i-escape-%C3%A2%EF%BF%BD%EF%BF%BD-character-from-xmlrss/ Share on other sites More sharing options...
requinix Posted July 9, 2013 Share Posted July 9, 2013 What RSS feed? Link to comment https://forums.phpfreaks.com/topic/279990-how-can-i-escape-%C3%A2%EF%BF%BD%EF%BF%BD-character-from-xmlrss/#findComment-1440083 Share on other sites More sharing options...
ayoksus Posted July 9, 2013 Author Share Posted July 9, 2013 Sorry, I don't get your question. I mean XML, like this Link to comment https://forums.phpfreaks.com/topic/279990-how-can-i-escape-%C3%A2%EF%BF%BD%EF%BF%BD-character-from-xmlrss/#findComment-1440100 Share on other sites More sharing options...
requinix Posted July 9, 2013 Share Posted July 9, 2013 The question was what RSS feed you're using. Their data is corrupt. You can't really recover from that. However it looks like they meant to use an apostrophe there; figure out the exact value of the bytes there (shown as "�" - bin2hex can help) and do an str_replace() to put in a proper apostrophe. Link to comment https://forums.phpfreaks.com/topic/279990-how-can-i-escape-%C3%A2%EF%BF%BD%EF%BF%BD-character-from-xmlrss/#findComment-1440101 Share on other sites More sharing options...
ayoksus Posted July 10, 2013 Author Share Posted July 10, 2013 Oh I see. Thanks. Link to comment https://forums.phpfreaks.com/topic/279990-how-can-i-escape-%C3%A2%EF%BF%BD%EF%BF%BD-character-from-xmlrss/#findComment-1440219 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.