From 9609bc00843e5b19db2aa1a421c7464126a6e282 Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Tue, 30 Jun 2020 23:22:02 +0530 Subject: [PATCH] Fix #456 --- buku | 2 ++ 1 file changed, 2 insertions(+) diff --git a/buku b/buku index cb31612..17654a7 100755 --- a/buku +++ b/buku @@ -4211,6 +4211,8 @@ def print_single_rec(row, idx=0): # NOQA try: print(''.join(str_list)) + except UnicodeEncodeError: + sys.stdout.buffer.write((''.join(str_list) + '\n').encode('utf-8')) except BrokenPipeError: sys.stdout = os.fdopen(1) sys.exit(1)