Jump to content

Question on Character Encoding


Scooby08

Recommended Posts

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..

Link to comment
https://forums.phpfreaks.com/topic/190263-question-on-character-encoding/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.