I'm using Pyramid and SQLAlchemy, but the following simplified code:
u = u"\u201C"
m = M()
m.comment = u
m.user_id = 1
session.add( m )
session.commit()
gives me a
UnicodeEncodeError: 'latin-1' codec can't encode character u'\u201c' in position 0: ordinal not in range(256)
what do I need to fix this?
edit:
comment is a "MEDIUMTEXT" column, MySQL type.
M? - Petr Viktorin