From 79c099b8d64fdb74bb533303d5a5b92de28372bb Mon Sep 17 00:00:00 2001 From: Mathieu Lutfy Date: Thu, 27 Feb 2014 08:26:06 -0500 Subject: [PATCH] CRM-13859 Backport PR #2195: set database connection to UTF-8 during install (by clandmeter). --- install/civicrm.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/install/civicrm.php b/install/civicrm.php index aade7071f8..b91f804906 100644 --- a/install/civicrm.php +++ b/install/civicrm.php @@ -131,6 +131,8 @@ function civicrm_source($dsn, $fileName, $lineMode = FALSE) { die("Cannot open $dsn: " . $db->getMessage()); } + $db->query("SET NAMES utf8"); + if (!$lineMode) { $string = file_get_contents($fileName); -- 2.25.1