Column / Table information: UTF-8 Unicode (utf8) with collation utf8_general_ci.
I've tried setting the --encoding flag but that doesn't do anything.
programatically
I'm actually trying to import data from MySQL into SQLite using DBI programmatically in Perl. I've tried setting binmode manually and what-not to no avail. I've also tried setting the encoding flag with something like :encoding(utf8) but that doesn't work either.
I don't think explicitly converting fields is a good practice. I've understood that Perl has something called 'internal encoding' as opposed to external encoding/decoding of the IO. My guess is that somewhere, data is encoded twice in UTF-8 which ends up causing issues.
foobar_2018-10-31.txt
Problem
When I try to export data from a MySQL database with UTF-8 encoding, I encounter encoding issues. The value "Venetië, contépotlood" will be output as "Venetië, contépotlood"
How to reproduce.
More background.
I've tried setting the
--encoding
flag but that doesn't do anything.programatically
I'm actually trying to import data from MySQL into SQLite using DBI programmatically in Perl. I've tried setting
binmode
manually and what-not to no avail. I've also tried setting theencoding
flag with something like:encoding(utf8)
but that doesn't work either.Which leaves me doing this wonky code:
I don't think explicitly converting fields is a good practice. I've understood that Perl has something called 'internal encoding' as opposed to external encoding/decoding of the IO. My guess is that somewhere, data is encoded twice in UTF-8 which ends up causing issues.
Any ideas?