From 593c5db2511fb156f1fc62632869956205c045f8 Mon Sep 17 00:00:00 2001 From: Nils Homer Date: Wed, 27 May 2020 10:24:21 -0700 Subject: [PATCH] Support unicode characters --- enasearch/cli.py | 1 + 1 file changed, 1 insertion(+) diff --git a/enasearch/cli.py b/enasearch/cli.py index b5ce21a..bb491bf 100644 --- a/enasearch/cli.py +++ b/enasearch/cli.py @@ -43,6 +43,7 @@ def print_complex_field_dict(d): def print_display(results, display): """Print the results given the choosen display""" + results = results.encode("utf-8") if display == 'xml': print(dicttoxml(results)) elif display == 'fasta' or display == 'fastq':