[Koha-bugs] [Bug 24330] New: When importing patrons from CSV, automatically strip BOM from file if it exists
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Jan 2 16:04:07 CET 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24330
Bug ID: 24330
Summary: When importing patrons from CSV, automatically strip
BOM from file if it exists
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: Tools
Assignee: koha-bugs at lists.koha-community.org
Reporter: kyle at bywatersolutions.com
QA Contact: testopia at bugs.koha-community.org
We have a partner that exports UTF-8 CSV files, and is experiencing the same
thing as the author of this article:
https://www.freecodecamp.org/news/a-quick-tale-about-feff-the-invisible-character-cd25cd4630e7/
In short, Excel is inserting an invisible UTF-8 character at the start of the
file, so that the column name "cardnumber" is actually named
"\x{feff}cardnumber", causing "cardnumber" to be blank.
A simple solution is provided here:
https://stackoverflow.com/questions/24390034/remove-bom-from-string-with-perl
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list