Jump to content

Recommended Posts

Hey guys,

I'm having issues trying to convert my databases.  I currently have a lot of data stored in an xml file which I want to put into a MySQL database.  I've written the php fr that, and it works fine, the problem is, that the data is being converted.

Many of my fields contain metacharacters, which are being changed when they are entered into the database.

 

Offending things include "Viva Piñata" being changed to "Viva Piñata", and "WALL•E" changing to "WALL•E", along with things such as TM symbols etc

 

This would be fine, except that much of the access to the MySQL uses the actual names, and therefore the garbage-looking characters are just making things screw up.

Can anyone tell me why these characters are being converted, and how to stop them being written to the database?

 

cheers

Link to comment
https://forums.phpfreaks.com/topic/135502-solved-unwanted-string-conversion/
Share on other sites

OK.  well, sorry, but severe newbie here, so not entirely sure how to do all that. :S

 

The database works if "Viva Piñata" is put into it manually, just not if taken from the xml.

The xml is saved as UTF8.

Other than that, I honestly dont know.

Sorry to be so useless

Thanks very much, yet again, Mchl.  That seems to have done it.

I've still got some garbage, but I think its mainly from kanji turning into ??? - don't know if thats actually question marks, or the kanji error as an unsupported , but either way, it shouldnt matter too much.

thanks very, very much

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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