You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get a UnicodeEncodeError with Unicode query parameter with the present 'pip' version.
>>> db.query(u"select * from words where form == '{{ word }}' limit 10", data={'word': u'læge'})
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/db/db.py", line 1307, in query
q = self._apply_handlebars(q, data, union)
File "/usr/local/lib/python2.7/dist-packages/db/db.py", line 1144, in _apply_handlebars
query = str(query)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe6' in position 36: ordinal not in range(128)
In the present GitHub version the error occurs in line 1232.
I have no problem if I interpolate before calling the query method, i.e., avoid self._apply_handlebars.
>>> db.query(u"select * from words where form == 'læge' limit 10")
index id form pos
0 9275 11031550 læge Noun
The text was updated successfully, but these errors were encountered:
I get a UnicodeEncodeError with Unicode query parameter with the present 'pip' version.
In the present GitHub version the error occurs in line 1232.
I have no problem if I interpolate before calling the query method, i.e., avoid self._apply_handlebars.
The text was updated successfully, but these errors were encountered: