diff --git a/ChangeLog b/ChangeLog index fb041fdb6..dd1859eee 100755 --- a/ChangeLog +++ b/ChangeLog @@ -14,8 +14,9 @@ $Source$ 2002-11-05 Michal Cihar * lang/{czech,italian,lithuanian,slovenian,swedish}*.php3: updated - translations, thanks to me ;), Pietro Danesi, Vilius Zigmantas. Kositer - Uros and Björn T. Hallberg + translations, thanks to me ;), Pietro Danesi, Vilius Zigmantas, Kositer + Uros and Björn T. Hallberg. + * tbl_dump.php3: Fixed bug #632310 (Export fails with UTF-8). 2002-11-05 Marc Delisle * main.php3: when the user does not have required privs to create diff --git a/tbl_dump.php3 b/tbl_dump.php3 index d504260ac..d2052d991 100755 --- a/tbl_dump.php3 +++ b/tbl_dump.php3 @@ -146,9 +146,14 @@ if (empty($asfile)) { else { // Defines filename and extension, and also mime types if (!isset($table)) { - $filename = PMA_convert_string($convcharset, 'iso8859-1', $db); + $filename = $db; } else { - $filename = PMA_convert_string($charset, 'iso8859-1', $table); + $filename = $table; + } + if (!(isset($cfg['AllowAnywhereRecoding']) && $cfg['AllowAnywhereRecoding'] && $allow_recoding)) { + $filename = PMA_convert_string($charset, 'iso-8859-1', $filename); + } else { + $filename = PMA_convert_string($convcharset, 'iso-8859-1', $filename); } if (isset($bzip) && $bzip == 'bzip') { $ext = 'bz2';