Deprecate CIVICRM_TEMP_FORCE_UTF8.
authormark burdett <mfburdett@gmail.com>
Thu, 21 Feb 2019 21:56:23 +0000 (13:56 -0800)
committermark burdett <mfburdett@gmail.com>
Sun, 24 Feb 2019 22:05:28 +0000 (14:05 -0800)
CRM/Utils/SQL/TempTable.php

index cde12a0f67ef8f1cac394c5345963e7a3121b4b4..7f1955003c7e6734287c7e7cda69e634afa6b008 100644 (file)
@@ -97,8 +97,8 @@ class CRM_Utils_SQL_TempTable {
     $t->id = md5(uniqid('', TRUE));
     // The constant CIVICRM_TEMP_FORCE_DURABLE is for local debugging.
     $t->durable = CRM_Utils_Constant::value('CIVICRM_TEMP_FORCE_DURABLE', FALSE);
-    // I suspect it would be better to just say utf8=true, but a lot of existing queries don't do the utf8 bit.
-    $t->utf8 = CRM_Utils_Constant::value('CIVICRM_TEMP_FORCE_UTF8', FALSE);
+    // @deprecated This constant is deprecated and will be removed.
+    $t->utf8 = CRM_Utils_Constant::value('CIVICRM_TEMP_FORCE_UTF8', TRUE);
     $t->autodrop = FALSE;
     $t->memory = FALSE;
     return $t;