WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. DaveMcK
    Member
    Posted 5 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');
    to
    define('DB_CHARSET', 'latin1');

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

    Thanks in advance.

  2. DaveMcK
    Member
    Posted 5 years ago #

    So it's perfectly alright to do this?

  3. shoshanna
    Member
    Posted 5 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