I\'m using pyramid for a web application with a postgres database, wtforms, sqlalchemy and jinja2 and I\'m having this error when the application try to get the issues types fro
I use mysql and set the charset like this. It works for me.
from sqlalchemy import create_engine
from sqlalchemy.engine.url import URL
db_url = {
'database': 'db_name',
'drivername': 'mysql',
'username': 'username',
'password': 'mypassword',
'host': '127.0.0.1',
'query': {'charset': 'utf8'},
}
engine = create_engine(URL(**db_url), encoding="utf8")