From d4685deeb6500b2c634b3daaedafac2f2e25e86d Mon Sep 17 00:00:00 2001 From: Alberto Peripolli Date: Thu, 19 Mar 2015 15:02:29 +0100 Subject: [PATCH] utf8 translitteration --- changelog.txt | 1 + filemanager/include/utils.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/changelog.txt b/changelog.txt index e1adbfe1..81972c66 100644 --- a/changelog.txt +++ b/changelog.txt @@ -6,6 +6,7 @@ Responsive Filemanager Changelog - added file selection directly from dropzone upload area (you can now select file directly after upload) - folder selection in context menu (you can now select also a folder) - responsive filemanager modal open on tinyMCE (the dimension of modal depend on window dimension) +- utf8 translitteration fix ********************************************************* * RFM 9.9.1 diff --git a/filemanager/include/utils.php b/filemanager/include/utils.php index 10bc9a84..26e61911 100755 --- a/filemanager/include/utils.php +++ b/filemanager/include/utils.php @@ -419,7 +419,7 @@ function fix_filename($str, $transliteration, $convert_spaces = false, $replace_ { if (function_exists('transliterator_transliterate')) { - $str = transliterator_transliterate('Accents-Any', $str); + $str = transliterator_transliterate('Accents-Any', utf8_encode($str)); } else {