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

set PDO character encoding to UTF-8 #46

Open
richjoslin opened this issue Apr 3, 2012 · 1 comment
Open

set PDO character encoding to UTF-8 #46

richjoslin opened this issue Apr 3, 2012 · 1 comment

Comments

@richjoslin
Copy link
Owner

In the config.ini, we need to add this line:

db.rivety.config.driver_options.1002 = "SET NAMES utf8"

Without this, even with the db, tables, and columns all set to utf8_general_ci collation, all data returned by queries using PDO are converted to ISO-whatever encoding and messing up many of the special characters.

@jaybill
Copy link
Collaborator

jaybill commented Apr 3, 2012

Weeeeeeeeird. Okay, we should put that in the installer and the template config.ini.

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

2 participants