Add new comment
|
There's a wrong assumption right at the beginning: The mysqldump client program takes into consideration a whole bunch of character set-related settings when backing up data, and it does that by default, as can be seen in this example: aphrodite~> mysqldump test > testdump.sql When restoring data backed up this way to a MySQL server running 4.1.01 or later, this should work with no issues "by default", so to speak. Of course, there are more things that could go wrong. For example, the original data might be from a table that has a latin1 character set, or no explicit character set at all (MySQL prior to 4.1), and the target table might have UTF-8. This would still work one-way for many characters (including German umlauts, probably), but would certainly fail the other way around (when restoring to a MySQL server < 4.1). For more information (including many examples), please refer to the Character Set Support section in the Internationalization and Localization chapter of the MySQL Reference Manual: http://dev.mysql.com/doc/refman/4.1/en/charset.html By the way, looking at that page will make you aware that there is in fact documentation available for MySQL 4.0, and even 3.23, while the article says there isn't. Also, the article says that MySQL 4.0 charset behavior differs from what's documented -- if that's true, please say what those differences are, and file a bug against the documentation. Thanks! Regards, Stefan (Sun Database Group documentation team)
Reply |



Recent comments
7 hours 28 min ago
17 hours 23 min ago
17 hours 32 min ago
18 hours 52 min ago
20 hours 59 min ago
23 hours 24 min ago
1 day 7 hours ago
1 day 11 hours ago
1 day 11 hours ago
1 day 11 hours ago