<div dir="ltr"><div><div><div>Hello,<br><br></div>A query like this works fine:<br><br>models.Order.select().filter('"x" in o.user.email')<br><br></div>However, using an accented character, I have difficulties:<br><br>models.Order.select().filter('"ö" in o.user.email')<br>ExprEvalError: '\xc3\xb6' in o.user.email raises NameError: name 'o' is not defined<br><br></div>or<br><br>models.Order.select().filter(u'"ö" in o.user.email')<br>UnicodeEncodeError: 'ascii' codec can't encode character u'\xf6' in position 2: ordinal not in range(128)<br clear="all"><div><div><div><div><br></div><div>This happens in SQLite and postgres. Am I doing something wrong?<br><br></div><div>Thanks<br></div><div>-- <br><div class="gmail_signature">Regards,<br><br>Matthew Bell<br></div>
</div></div></div></div></div>