CRM-13946: Backport PR #2185: set default database connection to UTF-8
authorArjan Mossel <arjanmossel@gmail.com>
Mon, 31 Mar 2014 22:16:19 +0000 (00:16 +0200)
committerArjan Mossel <arjanmossel@gmail.com>
Mon, 31 Mar 2014 22:16:19 +0000 (00:16 +0200)
CRM/Core/DAO.php

index 2e0f4ab65ac58951238b913b109b1b8de487d65c..9dea4c8676c42c669c29ef1ff6012a5e55c7a365 100644 (file)
@@ -196,6 +196,7 @@ class CRM_Core_DAO extends DB_DataObject {
    */
   function initialize() {
     $this->_connect();
+    $this->query("SET NAMES utf8");
   }
 
   /**