Skip to content

Commit 0adcfac

Browse files
committed
Fix import UTF-8 with BOM
1 parent 1f8e65c commit 0adcfac

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

admin/helpers/cvs.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ public static function loadCVS($content, $encoding, $delimiter = ';') {
4141
if ($encoding != "UTF-8") {
4242
$content = iconv($encoding, "UTF-8"."//TRANSLIT", $content);
4343
}
44+
if (substr($content,0,3) == "\357\273\277") { $content = substr($content,3); } //Remove known BOM
4445
return self::cvs2array($content, $delimiter);
4546
}
4647

0 commit comments

Comments
 (0)