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:
commit
bb6e8f6fa6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user