]> ToastFreeware Gitweb - philipp/winterrodeln/wradmin.git/blobdiff - wradmin/development.ini
Adding use_unicode=0 to the MySQL database connection string restores the behavior...
[philipp/winterrodeln/wradmin.git] / wradmin / development.ini
index ccfe1a58cdab918f745e6e7418698224cc26d05c..0239233d99625870d3ad274a87aaed3ee9ea3edc 100644 (file)
@@ -36,7 +36,8 @@ authkit.basic.authenticate.user.data =
 #beaker.session.data_dir = %(here)s/data/sessions
 
 # SQLAlchemy database URL
-sqlalchemy.url = mysql://philipp@localhost:3306/winterrodeln_wiki?charset=utf8
+sqlalchemy.url = mysql://philipp@localhost:3306/winterrodeln_wiki?charset=utf8&use_unicode=0
+# If use_unicode=1, sqlalchemy requests unicode strings from the MySQLdb backend (and does not do the conversion itself), however, since the tables are defined as 'varchar(x) binary' only binary string are returned and not converted to unicode.
 # necessary for mySQL databases
 sqlalchemy.pool_recycle = 3600
 # sqlalchemy.echo_pool = 1