{"id":10816734,"date":"2018-10-25T19:08:17","date_gmt":"2018-10-25T19:08:17","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/bug-backup-script-kills-emojis\/"},"modified":"2018-10-25T19:09:43","modified_gmt":"2018-10-25T19:09:43","slug":"bug-backup-script-kills-emojis","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/bug-backup-script-kills-emojis\/","title":{"rendered":"bug: backup script kills emojis"},"content":{"rendered":"<p>Backups created by this plugin have this at the top of the .sql file<\/p>\n<p><code>\/*!40101 SET NAMES utf8 *\/;<\/code><\/p>\n<p>That kills all emojis during imports (e.g. <code>source &lt;backup.sql&gt;;<\/code>). Note that the generated backup SQL file <strong>has<\/strong> emojis and even tables within are fine (they are <code>CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci<\/code>). It&#8217;s just that that offending line clobbers emojis during the INSERT operation inside the backup script.<\/p>\n<p>Replacing the offending line with <\/p>\n<p><code>\/*!40101 SET NAMES utf8mb4 *\/;<\/code><\/p>\n<p>fixes the problem. I do want to add that emoji&#8217;s are getting more prevalent &#8211; even in business copy. So this was an issue for us till we dug deeper.<\/p>\n","protected":false},"template":"","class_list":["post-10816734","topic","type-topic","status-publish","hentry","topic-tag-emoji"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10816734","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":1,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10816734\/revisions"}],"predecessor-version":[{"id":10816739,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/10816734\/revisions\/10816739"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=10816734"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}