Re: [sqlalchemy] strange UnicodeEncodeError with MySQL + Google App Engine (0.9.1)

2014-11-29 Thread Staszek
On 2014-11-29 16:19, Michael Bayer wrote: >>> opList = dbSession.query(PendingOperation).filter_by(opcode=opcode).all() > > looks easy enough to reproduce: > > import codecs > > x = u'\u0142' > > codecs.utf_8_decode(x) > > that is, in Py2K when you call decode() on a unicode object

Re: [sqlalchemy] strange UnicodeEncodeError with MySQL + Google App Engine (0.9.1)

2014-11-29 Thread Michael Bayer
> On Nov 29, 2014, at 3:52 AM, Staszek wrote: > > Hi > > We are experiencing strange UnicodeEncodeError with MySQL + Google App > Engine. The stack trace looks like this (I edited the application name > for security reasons, sorry): > >> File >> "/base/data/home/apps/s~app/1-0.37982885017686

[sqlalchemy] strange UnicodeEncodeError with MySQL + Google App Engine (0.9.1)

2014-11-29 Thread Staszek
Hi We are experiencing strange UnicodeEncodeError with MySQL + Google App Engine. The stack trace looks like this (I edited the application name for security reasons, sorry): > File > "/base/data/home/apps/s~app/1-0.379828850176861603/sqlalchemy/orm/query.py", > line 2280, in all > return