Created
December 22, 2014 21:31
-
-
Save mrvdb/6318dedb26734316ee31 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Modified classes/Memcached_DataObject.php | |
diff --git a/classes/Memcached_DataObject.php b/classes/Memcached_DataObject.php | |
index 2bd9581..62b3809 100644 | |
--- a/classes/Memcached_DataObject.php | |
+++ b/classes/Memcached_DataObject.php | |
@@ -784,9 +784,9 @@ class Memcached_DataObject extends Safe_DataObject | |
$conn = $DB->connection; | |
if (!empty($conn)) { | |
if ($DB instanceof DB_mysqli || $DB instanceof MDB2_Driver_mysqli) { | |
- mysqli_set_charset($conn, 'utf8'); | |
+ mysqli_set_charset($conn, 'utf8mb4'); | |
} else if ($DB instanceof DB_mysql || $DB instanceof MDB2_Driver_mysql) { | |
- mysql_set_charset('utf8', $conn); | |
+ mysql_set_charset('utf8mb4', $conn); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment