Advertisement

04.30.2008 at 05:48PM PDT, ID: 23367354
[x]
Attachment Details

Convert ASCII to UTF-8 during MySQL database import

Asked by benrwms in SQL Query Syntax, PHP Scripting Language, MySQL

Tags: mysql, php, mysql, ASCII, UTF-8, convert

I've exported a WordPress MySQL database using phpmyadmin, but the special characters in the database text, like é, ç and so on, have been changed into ASCII strings. This happens even with certain "normal" characters, like the apostrophe. For instance, the word "Liebenberg's" now shows up as "Liebenbergâ¬"s".

I need to import the database into a new server, and want to convert from ASCII to UTF-8 for special characters during this process, so they show up as normal - but haven't seen a means for doing this.

I think a special script needs to be created to handle the job. I'm not sure how to compose the script for PHP, however, and can't find an ASCII-to-UTF-8 table for it to use.

Any help would be appreciated.Start Free Trial
[+][-]05.01.2008 at 02:29AM PDT, ID: 21477315

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.01.2008 at 06:28AM PDT, ID: 21478319

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.01.2008 at 09:44AM PDT, ID: 21480281

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.01.2008 at 10:02AM PDT, ID: 21480454

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: SQL Query Syntax, PHP Scripting Language, MySQL
Tags: mysql, php, mysql, ASCII, UTF-8, convert
Sign Up Now!
Solution Provided By: Squinky
Participating Experts: 1
Solution Grade: B
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628