diff options
author | Amjith Ramanujam <amjith.r@gmail.com> | 2015-06-30 23:51:09 -0700 |
---|---|---|
committer | Amjith Ramanujam <amjith.r@gmail.com> | 2015-06-30 23:51:09 -0700 |
commit | d5e39446f39d02981741b3a16d66983daee8aa2f (patch) | |
tree | aac16c2f1a2f6d8fc2cb6ef03d43b1bd77398194 | |
parent | adf9a455f65c92d4e7651dcd52a2a074ffdfaaf4 (diff) |
Always use utf8 as the default encoding.
-rw-r--r-- | pgcli/pgexecute.py | 1 |
1 files changed, 1 insertions, 0 deletions
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 |