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