Message140392
I already fixed this issue in Python 3.1, 3.2 and 3.3: issue #6697 (e.g. commit 7ba851d1b46e).
$ ./python
Python 3.3.0a0 (default:ab162f925761, Jul 15 2011, 09:36:17)
>>> import sqlite3
>>> c = sqlite3.connect(":memory:")
>>> table_name = '"' + chr(0xD800) + '"'
>>> c.execute("create table " + table_name + " (bar)")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
UnicodeEncodeError: 'utf-8' codec can't encode character '\ud800' in position 14: surrogates not allowed
@jeremybanks: I don't think that you use sqlite3 coming from Python 3 but the third party module. |
|
Date |
User |
Action |
Args |
2011-07-15 07:50:54 | vstinner | set | recipients:
+ vstinner, ghaering, ned.deily, jeremybanks |
2011-07-15 07:50:54 | vstinner | set | messageid: <1310716254.45.0.647229499942.issue12569@psf.upfronthosting.co.za> |
2011-07-15 07:50:53 | vstinner | link | issue12569 messages |
2011-07-15 07:50:53 | vstinner | create | |
|