From d5e39446f39d02981741b3a16d66983daee8aa2f Mon Sep 17 00:00:00 2001 From: Amjith Ramanujam Date: Tue, 30 Jun 2015 23:51:09 -0700 Subject: [PATCH] Always use utf8 as the default encoding. --- pgcli/pgexecute.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pgcli/pgexecute.py b/pgcli/pgexecute.py index 535d2c5a..2b2fd63c 100644 --- a/pgcli/pgexecute.py +++ b/pgcli/pgexecute.py @@ -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