themistral Posted September 17, 2012 Share Posted September 17, 2012 Hi guys, I am using PHP to create an XML data feed for Google Merchant Centre. However, the database contents are stored as ISO-8859-1 but the GMC feed needs to be in UTF8 (as far as I can tell). It works fine if I leave the description out, but when I add in the description, the feed fails. I am presuming this is because of the difference in character encoding. I've tried utf8_encode and iconv, neither of which worked. There are characters such as bullets in the description so could this be the problem? Can someone please point me in the right direction to solve this? Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/268464-google-merchant-centre-feed/ Share on other sites More sharing options...
ignace Posted September 17, 2012 Share Posted September 17, 2012 Execute htmlentities against your description before inserting it into the XML. Quote Link to comment https://forums.phpfreaks.com/topic/268464-google-merchant-centre-feed/#findComment-1378694 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.