Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- psycopg2.extensions.register_type(psycopg2.extensions.UNICODE)
- psycopg2.extensions.register_type(psycopg2.extensions.UNICODEARRAY)
- C_test = psycopg.connect(myhost [...])
- cur_test = C_test.cursor()
- cur_prod.execute("INSERT INTO test some_data VALUES ("+u'ö'+");")
- cur_test.mogrify(u'%s',(u'ö',))
Add Comment
Please, Sign In to add comment