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. Quote 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? Quote 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 Quote 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...
Solution requinix Posted July 9, 2013 Solution Share Posted July 9, 2013 (edited) 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. Edited July 9, 2013 by requinix Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.