bug in bookbag url importer
authorgfawcett <gfawcett@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Wed, 5 Jan 2011 04:06:24 +0000 (04:06 +0000)
committergfawcett <gfawcett@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Wed, 5 Jan 2011 04:06:24 +0000 (04:06 +0000)
git-svn-id: svn://svn.open-ils.org/ILS-Contrib/servres/trunk@1157 6d9bc8c9-1ec2-4278-b937-99fde70a366f

conifer/libsystems/evergreen/item_status.py

index 62b245c..c184022 100644 (file)
@@ -20,7 +20,7 @@ def url_to_marcxml(url):
         if 'feed/bookbag' in url:
             #eg http://concat.ca/opac/extras/feed/bookbag/marcxml-full/60
             marc_url = re.sub(r'(.*/bookbag/)(.*?)(/.*)', r'\1marcxml-full\3', url)
-            xml = urllib2.urlopen(marc_url).read()
+            xml = unicode(urllib2.urlopen(marc_url).read(), 'utf-8')
         else:
             m = re.match(r'.*r=(\d+).*', url)
             item_id = m and m.group(1) or None