From 576a15ff1827c44622cb9446bd5d8e2a86055f3e Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Fri, 1 Sep 2017 15:17:46 -0400 Subject: [PATCH] Args can be UTF8 people too! Signed-off-by: Dan Scott --- tools/ebooks/prep_ebook_records.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/ebooks/prep_ebook_records.py b/tools/ebooks/prep_ebook_records.py index fc72b1fcab..063c2a2fcf 100755 --- a/tools/ebooks/prep_ebook_records.py +++ b/tools/ebooks/prep_ebook_records.py @@ -684,7 +684,7 @@ def add_publisher(record, options): have a matching 710 and just need to add the publisher relator code. """ - publisher = options['publisher'] + publisher = options['publisher'].decode('utf-8') munge_publisher = False need_publisher = True @@ -738,7 +738,7 @@ def add_platform(record, options): if not 'platform' in options: return False - platform = options['platform'] + platform = options['platform'].decode('utf-8') need_platform = True # Iterate through all of the existing 710 fields -- 2.11.0