Title: Charset changed
Last modified: August 31, 2016

---

# Charset changed

 *  Resolved [Blutarsky](https://wordpress.org/support/users/blutarsky/)
 * (@blutarsky)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/charset-changed/)
 * The restored data from a duplicator backup (running installer.php) will change
   the charset in wp.config to
    `define('DB_CHARSET', 'utf8mb4');` While the original
   charset is `utf8` Is this by design?
 * [https://wordpress.org/plugins/duplicator/](https://wordpress.org/plugins/duplicator/)

Viewing 15 replies - 1 through 15 (of 15 total)

 *  [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * (@corylamleorg)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/charset-changed/#post-7458102)
 * I’m pretty sure that wasn’t done by Duplicator. A global search and replace only
   shows DB_CHARSET once in the source [here](https://plugins.svn.wordpress.org/duplicator/tags/1.1.8/views/tools/diagnostics.php),
   and the value is set as readonly. It could be possible that the Core WP may be
   doing that.
 * In [version 4.2](https://make.wordpress.org/core/2015/04/02/the-utf8mb4-upgrade/)
   a change was made that automatically updates your tables. It maybe possible that
   there is some auto-detection that is running as well, I’m not sure where that
   would come from but there isn’t any code in the plugin that does that…
 *  Thread Starter [Blutarsky](https://wordpress.org/support/users/blutarsky/)
 * (@blutarsky)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/charset-changed/#post-7458108)
 * Are you using plain php on restore or Wp-Core is envolved somehow?
 *  [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * (@corylamleorg)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/charset-changed/#post-7458140)
 * If you login to your site after step 3 of the installer then WP-Core code is 
   called that might be were the change is made, but I’m just guessing. As far as
   Duplicator changing the value, there isn’t any code anywhere that I see making
   such an update…
 *  Thread Starter [Blutarsky](https://wordpress.org/support/users/blutarsky/)
 * (@blutarsky)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/charset-changed/#post-7458144)
 * I am logging in when the process ends, but not redirect by duplicator.
    However
   this is a great tool
 *  [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * (@corylamleorg)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/charset-changed/#post-7458158)
 * Thanks… I’m not quite sure where the change is happening at, wish I could provide
   more insight…
 *  Thread Starter [Blutarsky](https://wordpress.org/support/users/blutarsky/)
 * (@blutarsky)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/charset-changed/#post-7458160)
 * I may help.
    I am using Siteground, they have multiple services tightly integrated
   with WP.
 * Who knows, maybe once WP is started they adjust wp-config.php somehow…
 *  [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * (@corylamleorg)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/charset-changed/#post-7458177)
 * Possibly… Hope your able to get it pin-pointed…
 * Cheers~
 *  Thread Starter [Blutarsky](https://wordpress.org/support/users/blutarsky/)
 * (@blutarsky)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/charset-changed/#post-7458225)
 * I have discovered a couple things:
 * 1. the default collation sequence of my development environment is utf8mb4
    2.
   some tables in the database have utf8mb4 while others utf8 3. WP seems moving
   to utf8mb4? See [here](https://make.wordpress.org/core/2015/04/02/the-utf8mb4-upgrade/)
 *  [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * (@corylamleorg)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/charset-changed/#post-7458229)
 * That is correct. The link I have above titled version 4.2 also links to the same
   post, just in-case you missed it…
 *  Thread Starter [Blutarsky](https://wordpress.org/support/users/blutarsky/)
 * (@blutarsky)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/charset-changed/#post-7458230)
 * Whoops! What shall I do? Keep the collation fruit-salad in my db as is?
 *  [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * (@corylamleorg)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/charset-changed/#post-7458232)
 * I’m not sure if I understand the question…
 * You might try checking the version of the MySQL servers between the servers your
   moving. If the server where the package DB is made is too much lower than the
   server where its being installed then you can run into conversions issues.
 * These issues are difficult to pin-point the root cause in some situations… I 
   have put a check in the latest version (1.1.12) to warn on this when clicking
   the ‘Test Connection’ button on the installer…
 * There are a few FAQs on this that might help; checkout the question on the FAQs
   page under the section below:
 *  -> Browse to: [http://lifeinthegrid.com/duplicator-faq](http://lifeinthegrid.com/duplicator-faq)
   -
   > Find section: “Database Issues”
 * Hope that helps!
 *  Thread Starter [Blutarsky](https://wordpress.org/support/users/blutarsky/)
 * (@blutarsky)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/charset-changed/#post-7458234)
 * Thanks and sorry if I didn’t explain myself properly.
 * The question was if in your opinion is it safe to keep my WP db with mixed collations,
   as I have tables with utf8 and others with utf8mb4.
 * Thanks a lot
 *  [Cory Lamle](https://wordpress.org/support/users/corylamleorg/)
 * (@corylamleorg)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/charset-changed/#post-7458235)
 * Most of my databases and sites have mixed collations, its pretty normal and OK,
   however if you can get them all on the same collation it creates much more stability
   with any migration, and is a much better way to manage your database.
 * Cheers~
 *  [nathanhornby](https://wordpress.org/support/users/nathanhornby/)
 * (@nathanhornby)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/charset-changed/#post-8926671)
 * I’ve just done a deployment using Duplicator, from one utf8mb4_unicode_ci mysql
   server to another.
 * After ‘install’ I was sent straight to the language selection screen as if I’d
   never installed WordPress before. I’ve just checked the (new) database and all
   it contains is ‘wp_duplicator_packages’, which, looking at the database.sql file
   the plugin generates is the only ‘utf8’ charset table in my db.
 * So two questions:
 * 1. Why was only the UT8 charset table installed?
    2. Why is the ‘wp_duplicator_packages’
   table utf8 and not utf8mb4_unicode… ?
 * I haven’t managed to resolve the issue, just playing with trial and error now.
   I haven’t had the issue before so I suspect it’s something to do with the destination
   server, which is one I haven’t used this plugin with. (Webfaction, for the record)
 * ![Screenshot](https://i0.wp.com/i.imgur.com/RyxlwcQ.png)
    -  This reply was modified 9 years, 2 months ago by [nathanhornby](https://wordpress.org/support/users/nathanhornby/).
 *  [nathanhornby](https://wordpress.org/support/users/nathanhornby/)
 * (@nathanhornby)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/charset-changed/#post-8926983)
 * Actually it seems this problem is specific to my MYSQL versions, built in 5.6
   and deploying on 5.5 (collation errors). Annoying, not much I can do about that
   now! Will try the workarounds and hopefully one works 🙂
 * Still interested to hear why this plugin produces the only table that doesn’t
   use utf8mb4 though?
    -  This reply was modified 9 years, 2 months ago by [nathanhornby](https://wordpress.org/support/users/nathanhornby/).

Viewing 15 replies - 1 through 15 (of 15 total)

The topic ‘Charset changed’ is closed to new replies.

 * ![](https://ps.w.org/duplicator/assets/icon-256x256.png?rev=2906985)
 * [Duplicator - Backups & Migration Plugin - Cloud Backups, Scheduled Backups, & More](https://wordpress.org/plugins/duplicator/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/duplicator/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/duplicator/)
 * [Active Topics](https://wordpress.org/support/plugin/duplicator/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/duplicator/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/duplicator/reviews/)

 * 15 replies
 * 3 participants
 * Last reply from: [nathanhornby](https://wordpress.org/support/users/nathanhornby/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/charset-changed/#post-8926983)
 * Status: resolved