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 vstinner
Recipients ghaering, jeremybanks, ned.deily, vstinner
Date 2011-07-15.07:50:53
SpamBayes Score 2.0827784e-13
Marked as misclassified No
Message-id <1310716254.45.0.647229499942.issue12569@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2011-07-15 07:50:54vstinnersetrecipients: + vstinner, ghaering, ned.deily, jeremybanks
2011-07-15 07:50:54vstinnersetmessageid: <1310716254.45.0.647229499942.issue12569@psf.upfronthosting.co.za>
2011-07-15 07:50:53vstinnerlinkissue12569 messages
2011-07-15 07:50:53vstinnercreate