diff options
author | Amjith Ramanujam <amjith.r@gmail.com> | 2015-02-04 21:58:15 -0800 |
---|---|---|
committer | Amjith Ramanujam <amjith.r@gmail.com> | 2015-02-04 21:58:15 -0800 |
commit | 34c65cc2fb0019956408e53e07bd9684d73c64b3 (patch) | |
tree | 194afa40ef6bdf5163e92fb4a2488f5d98db607a | |
parent | c82efa3d0db2f3f9887f4639552e761802829be6 (diff) |
Make the column name utf8 to unicode.
-rwxr-xr-x | pgcli/main.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pgcli/main.py b/pgcli/main.py index fb602e07..c83aee60 100755 --- a/pgcli/main.py +++ b/pgcli/main.py @@ -220,8 +220,8 @@ class PGCli(object): if not click.confirm('Do you want to continue?'): click.secho("Aborted!", err=True, fg='red') break - output.extend(format_output(cur, headers, status, - self.table_format)) + output.extend(format_output(cur, map(utf8tounicode, + headers), status, self.table_format)) end = time() total += end - start mutating = mutating or is_mutating(status) |