Johannes Bauer schrieb:
> cursor.execute(u"INSERT INTO items (itemnr, description, ends) VALUES
> ('foo', 'bär', '2008-01-01 00:00:00');")
 > ...
> Is there a reason why pgdb chokes on UTF-8 umlauts

The problem here is that you're *not* sending UTF-8 umlauts, but 
Unicode. The solution is to simply remove the "u" in front of the string 
(assuming your Python code is utf-8, otherwise .encode('utf-8') the 
unicode string). And of course your database must be set to utf-8.

-- Christoph
_______________________________________________
PyGreSQL mailing list
[email protected]
http://mailman.vex.net/mailman/listinfo/pygresql

Reply via email to