From: Dan Scott Date: Fri, 1 Sep 2017 19:17:46 +0000 (-0400) Subject: Args can be UTF8 people too! X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=576a15ff1827c44622cb9446bd5d8e2a86055f3e;p=contrib%2FConifer.git Args can be UTF8 people too! Signed-off-by: Dan Scott --- 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