From d2f2ba3b642358471108824642f69673c60b8cbf Mon Sep 17 00:00:00 2001 From: Sebastian Castro <sebastian.castro@protonmail.com> Date: Thu, 22 Aug 2019 14:23:27 +0200 Subject: [PATCH] Fixs utf8 when reading Csv --- src/Biopen/GeoDirectoryBundle/Services/ElementImportService.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Biopen/GeoDirectoryBundle/Services/ElementImportService.php b/src/Biopen/GeoDirectoryBundle/Services/ElementImportService.php index 0e5155766..ca6abbd48 100755 --- a/src/Biopen/GeoDirectoryBundle/Services/ElementImportService.php +++ b/src/Biopen/GeoDirectoryBundle/Services/ElementImportService.php @@ -61,6 +61,7 @@ class ElementImportService if (($handle = fopen($fileName, 'r')) !== FALSE) { while (($row = fgetcsv($handle, 0, $delimiter)) !== FALSE) { + $row = array_map("utf8_encode", $row); if(!$header) { $header = $row; } else { -- GitLab