If you are connecting to MySQL with:
my $schema = MyDatabase::Main->connect("dbi:mysql:database=$database;host=$host",'root','', {mysql_enable_utf8 => 1});
Connection is forced to utf8;
Connect to SQLite :
my $schema = MyDatabase::Main->connect('dbi:SQLite:data/sample.db', {sqlite_unicode => 1});
The connection does not seem to be in utf8;
The goal is to eliminate the need to use decode () when retrieving data: from:
Mojo::ByteStream->new($cycle->type)->decode('utf-8')
at
$cycle->type
thank
source
share