fixed CRM-13946 set default database connection to UTF-8
authorJaap Jansma <jaap@idefix.edeveloper.nl>
Tue, 10 Dec 2013 11:43:48 +0000 (12:43 +0100)
committerJaap Jansma <jaap@idefix.edeveloper.nl>
Tue, 10 Dec 2013 11:43:48 +0000 (12:43 +0100)
CRM/Core/DAO.php

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