From 8bd65529f22f5e138e205612b5f244e8addb1092 Mon Sep 17 00:00:00 2001 From: Joey Hines Date: Sat, 21 Jul 2018 14:47:40 -0500 Subject: [PATCH] Fixed unicode support --- BotConfig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BotConfig.py b/BotConfig.py index 2f5f2ed..aebdef0 100644 --- a/BotConfig.py +++ b/BotConfig.py @@ -29,6 +29,6 @@ def get_engine_arg(config): port = config['SQL']['port'] database_name = config['SQL']['database'] - engine_args = '{}://{}:{}@{}:{}/{}' + engine_args = '{}://{}:{}@{}:{}/{}?charset=utf8mb4&use_unicode=1' return engine_args.format(driver, username, password, host, port, database_name) \ No newline at end of file