Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

encoding fun times again in Store::DBI #160

Open
doriantaylor opened this issue Mar 2, 2019 · 1 comment
Open

encoding fun times again in Store::DBI #160

doriantaylor opened this issue Mar 2, 2019 · 1 comment

Comments

@doriantaylor
Copy link
Contributor

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
Copy link
Contributor Author

doriantaylor commented Mar 2, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant