[Phpmyadmin-git] [SCM] phpMyAdmin branch, QA_3_3, updated. RELEASE_3_3_1RC1-83-g1e98437

Michal Čihař nijel at users.sourceforge.net
Wed Mar 31 14:26:20 CEST 2010


The branch, QA_3_3 has been updated
       via  1e984375b6ab0253b8c1860b55a11e705be772c0 (commit)
       via  428ed49d17533adb5444d85e8b194883fea99bb5 (commit)
      from  fad777ecb23ac323ba4b1a86220f8b4b7c612306 (commit)


- Log -----------------------------------------------------------------
-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                |    2 ++
 libraries/import.lib.php |    2 +-
 libraries/import/ods.php |    2 +-
 3 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index cf576c2..0b902ce 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -18,6 +18,8 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA
   thanks to Kaarel Nummert - kaarelnu
 - patch #2978815 [pdf] Fix generating PDF with table dimensions, thanks to BlinK_
 - patch #2977725 [export] XML wrongly encoded, thanks to Victor Volkov - hanut
+- patch #2979234 [import] Create tables with current charset and collation.
+- patch #2979234, bug #2960105 [import] Properly import unicode text from ODS.
 
 3.3.1.0 (2010-03-16)
 - bug #2941037 [core] Database structure not sorted by table correctly 
diff --git a/libraries/import.lib.php b/libraries/import.lib.php
index ca2ac2c..2f50c5d 100644
--- a/libraries/import.lib.php
+++ b/libraries/import.lib.php
@@ -947,7 +947,7 @@ function PMA_buildSQL($db_name, &$tables, &$analyses = NULL, &$additional_sql =
                     $tempSQLStr .= ", ";
                 }
             }
-            $tempSQLStr .= ") ENGINE=MyISAM;";
+            $tempSQLStr .= ") ENGINE=MyISAM DEFAULT CHARACTER SET " . $charset . " COLLATE " . $collation . ";";
             
             /**
              * Each SQL statement is executed immediately
diff --git a/libraries/import/ods.php b/libraries/import/ods.php
index 89701ec..81aed5e 100644
--- a/libraries/import/ods.php
+++ b/libraries/import/ods.php
@@ -68,7 +68,7 @@ unset($data);
  * result in increased performance without the need to
  * alter the code in any way. It's basically a freebee.
  */
-$xml = simplexml_load_string(utf8_encode($buffer), "SimpleXMLElement", LIBXML_COMPACT);
+$xml = simplexml_load_string($buffer, "SimpleXMLElement", LIBXML_COMPACT);
 
 unset($buffer);
 


hooks/post-receive
-- 
phpMyAdmin




More information about the Git mailing list