ASCII support for non UTF-8 characters in Theme Files

Issue #6 open
Anonymous created an issue

Traceback (most recent call last): File "./Shopify.py", line 189, in on_asset_select asset_full_name = current_store.download_asset(picked) File "./Shopify.py", line 102, in download_asset f.write(value) UnicodeEncodeError: 'ascii' codec can't encode character u'\u2192' in position 4592: ordinal not in range(128)

Fix would be on line 102: f.write(value.encode('ascii','xmlcharrefreplace'))

Comments (4)

  1. Log in to comment