From 7249326b30dccde25253524454ec6c896607ae3c Mon Sep 17 00:00:00 2001 From: Robert Date: Fri, 1 Aug 2025 00:21:23 -0400 Subject: [PATCH] UTF-8 on --- protected/src/configs/on_UTF8.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 protected/src/configs/on_UTF8.php diff --git a/protected/src/configs/on_UTF8.php b/protected/src/configs/on_UTF8.php new file mode 100644 index 0000000..476a1f9 --- /dev/null +++ b/protected/src/configs/on_UTF8.php @@ -0,0 +1,18 @@ + + * @copyright (c) 2025, Robert Strutts + * @license MIT + */ + +// Setup php for working with Unicode data, if possible +if (extension_loaded('mbstring')) { + mb_internal_encoding('UTF-8'); + mb_http_output('UTF-8'); + mb_language('uni'); + mb_regex_encoding('UTF-8'); + setlocale(LC_ALL, "en_US.UTF-8"); +} \ No newline at end of file