From d62b98a95ecf8c5f9f42d8fcf25d833ecf589f1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?X=C3=A9fir=20Destiny?= Date: Sun, 15 Dec 2019 12:16:12 +0100 Subject: [PATCH] Fix charset --- config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.py b/config.py index 1d64fe2..1496ac1 100644 --- a/config.py +++ b/config.py @@ -27,7 +27,7 @@ APP_PORT = environ.get('FLASK_PORT', 5000) app = Flask(__name__) app.secret_key = urandom(24).hex() -app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql://%s:%s@%s/%s' % (db_user, db_password, db_host, db_name) +app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql://%s:%s@%s/%s?charset=utf8mb4' % (db_user, db_password, db_host, db_name) app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = True app.config['SQLALCHEMY_ECHO'] = IS_DEBUG auth = HTTPBasicAuth()