always set utf8 pg client encoding
Related: https://pagure.io/koji/issue/2104
This commit is contained in:
parent
d5dab2c660
commit
f2a57c8485
1 changed files with 1 additions and 0 deletions
|
|
@ -189,6 +189,7 @@ def connect():
|
|||
opts = {}
|
||||
try:
|
||||
conn = psycopg2.connect(**opts)
|
||||
conn.set_client_encoding('UTF8')
|
||||
except Exception:
|
||||
logger.error(''.join(traceback.format_exception(*sys.exc_info())))
|
||||
raise
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue