CRM-13859 - set database connection to UTF-8
authorCarlo Landmeter <clandmeter@gmail.com>
Wed, 11 Dec 2013 11:09:27 +0000 (11:09 +0000)
committerCarlo Landmeter <clandmeter@gmail.com>
Wed, 11 Dec 2013 11:09:27 +0000 (11:09 +0000)
install/civicrm.php

index 1f8e0492dd03e42d6ac9e6e33539779d35273c86..c4063acb9a4120dcb92fae2529ee6aed9806e1e9 100644 (file)
@@ -123,6 +123,7 @@ function civicrm_source($dsn, $fileName, $lineMode = FALSE) {
   if (PEAR::isError($db)) {
     die("Cannot open $dsn: " . $db->getMessage());
   }
+  $db->query("SET NAMES utf8");
 
   if (!$lineMode) {
     $string = file_get_contents($fileName);