Fixed encoding errors on import

This commit is contained in:
Josef Citrine 2017-10-11 21:57:03 +01:00
parent 1f46b3a85d
commit 29cd3de86e

View file

@ -501,7 +501,7 @@ class ImportEQBeats extends Command
->insert([ ->insert([
'track_id' => $result->getResponse()['id'], 'track_id' => $result->getResponse()['id'],
'path' => $file->getRelativePath(), 'path' => $file->getRelativePath(),
'filename' => $file->getFilename(), 'filename' => iconv("UTF-8", "ISO-8859-1//TRANSLIT", $file->getFilename()),
'extension' => $file->getExtension(), 'extension' => $file->getExtension(),
'imported_at' => Carbon::now(), 'imported_at' => Carbon::now(),
'parsed_tags' => json_encode($parsedTags), 'parsed_tags' => json_encode($parsedTags),