Jump to content

Importing Issue ’


oMIKEo

Recommended Posts

Hi,

Ive been importing all the records for a clients site into my database and ive just exported and then imported them into the clients database but its not working very well...

Its adding things like don’t when it should be a '

Any ideas if i can easily solve this?

Thanks,
Mike
Link to comment
Share on other sites

The data was originally in MS Word then pasted into my database via phpmyadmin.

From that the tables and data were extracted as a .sql file and imported into the clients database, again via phpmyadmin.

Any ideas how to fix the problem of those special characters.

Thanks
Link to comment
Share on other sites

I found this solution on another PHP email list I'm on:
[code]<?php
     $search = array(
         '/[\x07\x95]/',
         '/\x85/',
         '/[\x91\x92]/',
         '/[\x93\x94]/',
     );
     $replace = array(
         '-',
         '...',
         '\'',
         '"',
     );
     $data = preg_replace($search, $replace, $data);
?>[/code]

Ken
Link to comment
Share on other sites

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.