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
Traceback (most recent call last):
File "test.py", line 24, in<module>
db.insert('items', {'name': name, 'data': data, 'ctime': int(time.time())})
File "C:\Python27\lib\site-packages\medoo\base.py", line 70, in insert
sql = self.builder.insert(table, fields, *values)
File "C:\Python27\lib\site-packages\medoo\builder.py", line 658, in insert
self._insert(table, values2, fields)
File "C:\Python27\lib\site-packages\medoo\builder.py", line 560, in _insert
valterms.append('({})'.format(','.join([Builder.DIALECT.value(iv) forivin inval])))
File "C:\Python27\lib\site-packages\medoo\dialect.py", line 39, in value
return"'{}'".format(str(item).replace("'", "''"))
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-5: ordinal not in range(128)
The text was updated successfully, but these errors were encountered:
When do insert action, if I use unicode in data field, It raise the UnicodeEncodeError, if I use str, all is well.
The text was updated successfully, but these errors were encountered: