1
1
mirror of https://github.com/dbcli/pgcli.git synced 2024-10-06 10:17:15 +03:00

Merge pull request #275 from dbcli/amjith/force-utf8-encoding

Always use utf8 as the default encoding.
This commit is contained in:
Iryna Cherniavska 2015-07-25 10:16:21 -07:00
commit bb6e8f6fa6

View File

@ -162,6 +162,7 @@ class PGExecute(object):
password=unicode2utf8(password),
host=unicode2utf8(host),
port=unicode2utf8(port))
conn.set_client_encoding('utf8')
if hasattr(self, 'conn'):
self.conn.close()
self.conn = conn