This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ekontsevoy
Recipients ekontsevoy
Date 2012-06-19.22:18:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1340144328.26.0.0393319745323.issue15109@psf.upfronthosting.co.za>
In-reply-to
Content
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])
History
Date User Action Args
2012-06-19 22:18:48ekontsevoysetrecipients: + ekontsevoy
2012-06-19 22:18:48ekontsevoysetmessageid: <1340144328.26.0.0393319745323.issue15109@psf.upfronthosting.co.za>
2012-06-19 22:18:47ekontsevoylinkissue15109 messages
2012-06-19 22:18:47ekontsevoycreate