Created
August 7, 2011 23:11
-
-
Save dsueiro/1130911 to your computer and use it in GitHub Desktop.
Fixing double-utf8-encoded mysql chars
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| mysqldump -h DB_HOST -u DB_USER -p DB_PASSWORD --opt --quote-names \ | |
| --skip-set-charset --default-character-set=latin1 DB_NAME > DB_NAME-dump.sql | |
| mysql -h DB_HOST -u DB_USER -p DB_PASSWORD \ | |
| --default-character-set=utf8 DB_NAME < DB_NAME-dump.sql | |
| via http://blog.hno3.org/2010/04/22/fixing-double-encoded-utf-8-data-in-mysql/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment