kasei / perlrdf

Deprecated in favor of the Attean package
26 stars 25 forks source link

encoding fun times again in Store::DBI #160

Open doriantaylor opened 5 years ago

doriantaylor commented 5 years ago

Various database drivers have ostensibly modernized since Store::DBI was written, and it appears that there now needs to be some logic around the Encode stuff because UTF-8 characters get mangled with a double decode. Possible solutions:

1) Make the drivers responsible for encoding/decoding strings 2) Try to pass in connection attributes with the driver connections that turn off auto utf8

I am currently in the process of trying option 2.

Others?

doriantaylor commented 5 years ago

anyway looks like option 1 is the winner cause option 2 (e.g., pg_enable_utf8 => 0) apparently does nothing.