Well, the issue is not how to input text in the database from Python (it is enough to use literal unicode strings); in my case the database has been generated from a text file containing accented chars, using .import, and it seems I cannot read it from Python because of the unicode error :-( Michele Simionato