in reply to Re: Text::CSV on Unicode file
in thread Text::CSV on Unicode file

[ddb@playpen ~/smbshare/Documents/work/tpdbfix/app]$ file play-thumbs. +txt play-thumbs.txt: UTF-8 Unicode (with BOM) text, with very long lines

That (with BOM) was the trigger! I can now reproduce

I have fixed this for version 1.31. I will need to add some tests for that before I release.

With the current versions you just don't use :encoding(utf-8) on open, as the headers method then doesn't recognize the BOM as bytes.


Enjoy, Have FUN! H.Merijn

Replies are listed 'Best First'.
Re^3: Text::CSV on Unicode file
by dd-b (Pilgrim) on Jun 09, 2017 at 21:27 UTC
    Outstanding! Glad I finally was able to describe it precisely enough that you could find it. I assume this means the request for a zipped copy of stuff is now irrelevant? If still useful I could certainly do it. My own further investigation discovered bugs I still have to report on Thumbs Plus -- the database export CSV header and body lines aren't compatible. Sigh. But that's not in any way *your* problem :-) . But I've got a new Text::CSV one, too, that I'll post shortly in a new thread.