mysql migration encoding fix - is this safe? (3 posts)

  1. DaveMcK
    Posted 7 years ago #

    Lots of trouble migrating to a new host - particularly with moving the database. Lots of gremlins appear in the imported version (borked apostrophes, quotes etc), all to do with utf-8 reading Latin1 entries. There appear to be some complex solutions to do with configuring the dumps/imports correctly, but the easy thing that works seems to be to edit the wp-config.php file and change

    define('DB_CHARSET', 'utf8');
    define('DB_CHARSET', 'latin1');

    It definitely works - but could it cause problems? If so, what of problems?

    Thanks in advance.

  2. DaveMcK
    Posted 7 years ago #

    So it's perfectly alright to do this?

  3. shoshanna
    Posted 7 years ago #

    We're having a similar situation: it's inconvenient to convert the database to utf8 because of the way we have it set up, and it's much easier to just change the charset in wp-config.php to latin1 instead.

    Is this safe to do?

Topic Closed

This topic has been closed to new replies.

About this Topic