We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a774800 commit a172b37Copy full SHA for a172b37
src/traits/LfmHelpers.php
@@ -298,7 +298,7 @@ private function removeLastSlash($path)
298
public function translateFromUtf8($input)
299
{
300
if ($this->isRunningOnWindows()) {
301
- $input = iconv('UTF-8', 'BIG5', $input);
+ $input = iconv('UTF-8', mb_detect_encoding($input), $input);
302
}
303
304
return $input;
@@ -313,7 +313,7 @@ public function translateFromUtf8($input)
313
public function translateToUtf8($input)
314
315
316
- $input = iconv('BIG5', 'UTF-8', $input);
+ $input = iconv(mb_detect_encoding($input), 'UTF-8', $input);
317
318
319
0 commit comments