New submission from Ev Kontsevoy <eugu...@gmail.com>:

When calling connection.iterdump() on a database with non-ASCII string values, 
the following exception is raised:

----------------------------------------------------
File "/python-2.7.3/lib/python2.7/sqlite3/dump.py", line 56, in _iterdump
    yield("{0};".format(row[0]))

UnicodeEncodeError: 'ascii' codec can't encode characters in position 48-51: 
ordinal not in range(128)
----------------------------------------------------

The older versions used the following (safer) version in 
/python-2.7.3/lib/python2.7/sqlite3/dump.py:56:

yield("%s;" % row[0])

----------
components: Library (Lib)
messages: 163227
nosy: ekontsevoy
priority: normal
severity: normal
status: open
title: sqlite3.Connection.iterdump() dies with encoding exception
versions: Python 2.7

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue15109>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to