📜  python psycopg2 utf8 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:51.075000             🧑  作者: Mango

代码示例1
#Make sure you're using the right encodind by running:
print conn.encoding

#and if you need, you can set the right encoding by
conn.set_client_encoding('UNICODE')
#or
conn.set_client_encoding('UTF8').