shanejeffery86 Posted February 6, 2009 Share Posted February 6, 2009 Hey all. I am storing a Flicker RSS feed URL in the database. When I retrieve it from the database (bearing in mind that the database version of the feed URL is fine), it gets an odd character encoding. Look at the character after @N00: http://api.flickr.com/services/feeds/photoset.gne?set=72157605523931022&nsid=76298733@N00〈=en-us The link should look like: http://api.flickr.com/services/feeds/photoset.gne?set=72157605523931022&nsid=76298733@N00&lang=en-us When I look at the view source for the ECHO, the source is the correct link. So, I tried using 'htmlentities' and that seemed to have worked. However, when I pass the new URL into CURL, it stills reads it as the odd character version. Anyone have any ideas what the heck is going on? Thank you. Quote Link to comment https://forums.phpfreaks.com/topic/144083-htmlentities-issue-dealing-with-andpersands/ Share on other sites More sharing options...
JonnoTheDev Posted February 6, 2009 Share Posted February 6, 2009 You have a character in your field that the character set your scripts or database doesn't understand correctly. Quote Link to comment https://forums.phpfreaks.com/topic/144083-htmlentities-issue-dealing-with-andpersands/#findComment-756094 Share on other sites More sharing options...
shanejeffery86 Posted February 6, 2009 Author Share Posted February 6, 2009 Hey there Neil. I get that. I am just wondering why it is coming out of the database like that when it is perfectly fine in the database. Quote Link to comment https://forums.phpfreaks.com/topic/144083-htmlentities-issue-dealing-with-andpersands/#findComment-756165 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.