Re: Help! Japanese text garbled in backups! [SOLUTION]
Posted by:
jefurii
Date: December 16, 2006 03:27PM
The problem was that mysqldump for 4.1 was encoding everything in utf-8. The tables in the database are still in latin1, so when they were backed up they received an extra layer of encoding, which garbled the Japanese text.
The solution was to force mysqldump to use latin1 encoding. I also read somewhere in the forums or in the docs that the '>' redirect (mysqldump ... > dumpfile.sql) affected encoding, so I'm now using the -r option.
These options seem to work:
$ mysqldump -p -u root --default-character-set=latin1 -r dumpfile.sql databasename
Subject
Views
Written By
Posted
2971
December 15, 2006 06:31PM
Re: Help! Japanese text garbled in backups! [SOLUTION]
4036
December 16, 2006 03:27PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.