Scooby08 Posted January 29, 2010 Share Posted January 29, 2010 I am pulling information from an XML file that is ISO-8859-1 encoded and then am inserting that info into a database.. My script is UTF-8 encoded.. The sql has this CHARSET=utf8.. The XML file has some info like so: 4½ And after inserted into the database it's like so: 4½ Just wondering if there's some way I can take care of those so that when they are inserted into the database it doesn't have that funky character in it.. I also have no control over the charset if the XML file.. Quote Link to comment https://forums.phpfreaks.com/topic/190263-question-on-character-encoding/ Share on other sites More sharing options...
jskywalker Posted January 30, 2010 Share Posted January 30, 2010 http://php.net/manual/en/function.utf8-encode.php "utf8_encode — Encodes an ISO-8859-1 string to UTF-8" Quote Link to comment https://forums.phpfreaks.com/topic/190263-question-on-character-encoding/#findComment-1004240 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.