Fix char-set for default escaping
authorEileen McNaughton <emcnaughton@wikimedia.org>
Wed, 22 Dec 2021 23:25:58 +0000 (12:25 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Wed, 22 Dec 2021 23:25:58 +0000 (12:25 +1300)
CRM/Core/Smarty.php

index 1c0ff21dbc1fbdfc733ce1ec3e1d9e1b1c3ba30b..49a40a4fe3ff0a7941dc53ac06918adadbe7c604 100644 (file)
@@ -395,7 +395,7 @@ class CRM_Core_Smarty extends Smarty {
    *
    * @return string
    */
-  public static function escape($string, $esc_type = 'html', $char_set = 'ISO-8859-1') {
+  public static function escape($string, $esc_type = 'html', $char_set = 'UTF-8') {
     // CiviCRM variables are often arrays - just handle them.
     // The early return on booleans & numbers is mostly to prevent them being
     // logged as 'changed' when they are cast to a string.