From: Carlo Landmeter Date: Wed, 11 Dec 2013 11:09:27 +0000 (+0000) Subject: CRM-13859 - set database connection to UTF-8 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=8e58c9aacc86f6c164fed13213be3bc1ff223f60;p=civicrm-core.git CRM-13859 - set database connection to UTF-8 --- diff --git a/install/civicrm.php b/install/civicrm.php index 1f8e0492dd..c4063acb9a 100644 --- a/install/civicrm.php +++ b/install/civicrm.php @@ -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);