Args can be UTF8 people too!
authorDan Scott <dscott@laurentian.ca>
Fri, 1 Sep 2017 19:17:46 +0000 (15:17 -0400)
committerDan Scott <dscott@laurentian.ca>
Fri, 1 Sep 2017 19:17:46 +0000 (15:17 -0400)
Signed-off-by: Dan Scott <dscott@laurentian.ca>
tools/ebooks/prep_ebook_records.py

index fc72b1f..063c2a2 100755 (executable)
@@ -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