Skip to content

Commit

Permalink
Merge pull request #5 from opheugene/fix-translit
Browse files Browse the repository at this point in the history
Исправлена транслитерация названий загружаемых файлов
  • Loading branch information
muxx authored May 28, 2018
2 parents 0ac4ada + 9d4e8b6 commit 011ef92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Services/FileUploader.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public function listFiles()
*/
private static function win2utf($s)
{
return iconv('cp1251', 'utf-8', $s);
return iconv('cp1251', 'utf-8//IGNORE', $s);
}

/**
Expand All @@ -183,7 +183,7 @@ private static function win2utf($s)
*/
private static function utf2win($s)
{
return iconv('utf-8', 'cp1251', $s);
return iconv('utf-8', 'cp1251//IGNORE', $s);
}

/**
Expand Down

0 comments on commit 011ef92

Please sign in to comment.