From 2270df20dfa1e33c46b99c7470c65d4da4341e94 Mon Sep 17 00:00:00 2001 From: "Alexandros C. Couloumbis" Date: Wed, 27 Nov 2019 18:03:09 +0200 Subject: [PATCH] utf-8 update --- class/locale/ltlocale.class.php | 4 ++-- class/net/xmlrpc/IXR_Library.lib.php | 4 ++-- class/template/smarty/plugins/modifier.escape.php | 2 +- class/view/view.class.php | 2 +- locale/locale_en_UK.php | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/class/locale/ltlocale.class.php b/class/locale/ltlocale.class.php index 42bf96f..0efb522 100644 --- a/class/locale/ltlocale.class.php +++ b/class/locale/ltlocale.class.php @@ -35,7 +35,7 @@ /** * default encoding if the locale does not specify one */ - define( "DEFAULT_ENCODING", "iso-8859-1" ); + define( "DEFAULT_ENCODING", "utf-8" ); /** * default direction for texts, if the locale does not specify one @@ -850,4 +850,4 @@ } } } -?> \ No newline at end of file +?> diff --git a/class/net/xmlrpc/IXR_Library.lib.php b/class/net/xmlrpc/IXR_Library.lib.php index 34b1536..d8a1336 100644 --- a/class/net/xmlrpc/IXR_Library.lib.php +++ b/class/net/xmlrpc/IXR_Library.lib.php @@ -278,7 +278,7 @@ class IXR_Server { var $callbacks = array(); var $message; var $capabilities; - var $defencoding = 'iso-8859-1'; + var $defencoding = 'utf-8'; function IXR_Server($callbacks = false, $data = false) { $this->setCapabilities(); if ($callbacks) { @@ -819,4 +819,4 @@ class IXR_ClientMulticall extends IXR_Client { } } -?> \ No newline at end of file +?> diff --git a/class/template/smarty/plugins/modifier.escape.php b/class/template/smarty/plugins/modifier.escape.php index a2f52b2..7243f92 100644 --- a/class/template/smarty/plugins/modifier.escape.php +++ b/class/template/smarty/plugins/modifier.escape.php @@ -19,7 +19,7 @@ * @param html|htmlall|url|quotes|hex|hexentity|javascript * @return string */ -function smarty_modifier_escape($string, $esc_type = 'html', $char_set = 'ISO-8859-1') +function smarty_modifier_escape($string, $esc_type = 'html', $char_set = 'UTF-8') { switch ($esc_type) { case 'html': diff --git a/class/view/view.class.php b/class/view/view.class.php index 90be7a2..3cc0972 100644 --- a/class/view/view.class.php +++ b/class/view/view.class.php @@ -27,7 +27,7 @@ /** * default content-type that is going to be sent in HTTP headers */ - define( "DEFAULT_VIEW_CHARSET", "iso-8859-1" ); + define( "DEFAULT_VIEW_CHARSET", "utf-8" ); /** * default page where we should start if the "page" parameter is not diff --git a/locale/locale_en_UK.php b/locale/locale_en_UK.php index 6ed3c8b..5da9e15 100644 --- a/locale/locale_en_UK.php +++ b/locale/locale_en_UK.php @@ -1,7 +1,7 @@