diff --git a/src/Lfm.php b/src/Lfm.php index 457b68f2..857ca6a1 100644 --- a/src/Lfm.php +++ b/src/Lfm.php @@ -206,11 +206,24 @@ public function allowShareFolder() */ public function translateFromUtf8($input) { + $rInput = []; + if ($this->isRunningOnWindows()) { - $input = iconv('UTF-8', mb_detect_encoding($input), $input); + // $input = iconv('UTF-8', mb_detect_encoding($input), $input); + + if (is_array($input)) { + foreach ($input as $k => $i) { + $rInput[] = iconv('UTF-8', mb_detect_encoding($i), $i); + } + } else { + $rInput = $input; + } + } else { + $rInput = $input; } - return $input; + return $rInput; + // return $input; } /**