From 1a54fa69f24466025dd8233e37f3c93d0b6fa123 Mon Sep 17 00:00:00 2001 From: "Alexander M. Turek" Date: Sat, 21 Dec 2002 22:05:49 +0000 Subject: [PATCH] wrong charset information in XML exports --- ChangeLog | 6 ++++++ tbl_dump.php3 | 18 +++++++++--------- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7e2b94319..d2e815363 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,12 @@ phpMyAdmin - Changelog $Id$ $Source$ +2002-12-21 Alexander M. Turek + * tbl_dump.php3: + - Fixed wrong charset information in XML exports. + - Beautified the output of the MySQL version number, e.g. '4.0.5' instead + of '4.00.05'. + 2002-12-20 Alexander M. Turek * lang/italian-*.inc.php3: Updates, thanks again to Pietro Danesi (danone). diff --git a/tbl_dump.php3 b/tbl_dump.php3 index 78fee03f5..39762e4af 100755 --- a/tbl_dump.php3 +++ b/tbl_dump.php3 @@ -120,7 +120,7 @@ else { } else { $filename = PMA_convert_string($convcharset, 'iso-8859-1', $filename); } - + // Generate basic dump extension if ($what == 'csv' || $what == 'excel') { $ext = 'csv'; @@ -129,7 +129,7 @@ else { $ext = 'xml'; $mime_type = 'text/xml'; } else if ($what == 'latex') { - $ext = 'tex'; + $ext = 'tex'; $mime_type = 'application/x-tex'; } else { $ext = 'sql'; @@ -139,7 +139,7 @@ else { ? 'application/octetstream' : 'application/octet-stream'; } - + // If dump is going to be copressed, set correct mime_type and add // compression to extension if (isset($bzip) && $bzip == 'bzip') { @@ -191,7 +191,7 @@ else { : '\'' . $db . '\''; $dump_buffer .= $crlf . '# ' . $strGenTime . ': ' . PMA_localisedDate() . $crlf - . '# ' . $strServerVersion . ': ' . substr(PMA_MYSQL_INT_VERSION, 0, 1) . '.' . substr(PMA_MYSQL_INT_VERSION, 1, 2) . '.' . substr(PMA_MYSQL_INT_VERSION, 3) . $crlf + . '# ' . $strServerVersion . ': ' . substr(PMA_MYSQL_INT_VERSION, 0, 1) . '.' . (int) substr(PMA_MYSQL_INT_VERSION, 1, 2) . '.' . (int) substr(PMA_MYSQL_INT_VERSION, 3) . $crlf . '# ' . $strPHPVersion . ': ' . phpversion() . $crlf . '# ' . $strDatabase . ': ' . $formatted_db_name . $crlf; @@ -251,7 +251,7 @@ else { // 'xml' case else if ($GLOBALS['what'] == 'xml') { // first add the xml tag - $dump_buffer .= '' . $crlf . $crlf; + $dump_buffer .= '' . $crlf . $crlf; // some comments $dump_buffer .= '