From 29cd3de86ef09f98422e3773a822e58ff76c2a60 Mon Sep 17 00:00:00 2001 From: Josef Citrine Date: Wed, 11 Oct 2017 21:57:03 +0100 Subject: [PATCH] Fixed encoding errors on import --- app/Console/Commands/ImportEQBeats.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Console/Commands/ImportEQBeats.php b/app/Console/Commands/ImportEQBeats.php index ee338488..a9935ae5 100644 --- a/app/Console/Commands/ImportEQBeats.php +++ b/app/Console/Commands/ImportEQBeats.php @@ -501,7 +501,7 @@ class ImportEQBeats extends Command ->insert([ 'track_id' => $result->getResponse()['id'], 'path' => $file->getRelativePath(), - 'filename' => $file->getFilename(), + 'filename' => iconv("UTF-8", "ISO-8859-1//TRANSLIT", $file->getFilename()), 'extension' => $file->getExtension(), 'imported_at' => Carbon::now(), 'parsed_tags' => json_encode($parsedTags),