diff options
author | emkael <emkael@tlen.pl> | 2017-01-06 00:01:23 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2017-01-06 00:01:23 +0100 |
commit | d2ef0b2535e944c65498a85bb1b7c9981c7d0237 (patch) | |
tree | 98bec5183b7f5960e66b5084f73505c0fc1e838e | |
parent | 8d8e6af1783bf62ee6779f98fc30c3fd75ce955b (diff) |
DB connection charset
-rw-r--r-- | ausbutler/db.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ausbutler/db.py b/ausbutler/db.py index e40fee5..15f3518 100644 --- a/ausbutler/db.py +++ b/ausbutler/db.py @@ -5,7 +5,7 @@ from .config import load_config def get_session(): session = sessionmaker(bind=create_engine( - "mysql://{0[user]}:{0[pass]}@{0[host]}/{0[db]}".format( + "mysql://{0[user]}:{0[pass]}@{0[host]}/{0[db]}?charset=utf8".format( load_config('db') ))) return session() |