Commit 135dfc47 authored by eric's avatar eric
Browse files

Will this help against `UnicodeEncodeError` when printing?

Python 3 seems to be worth it just because of these errors…
parent 426fd600
......@@ -100,7 +100,7 @@ def query_results_to_template_articles(query_results):
article = None
current_uri = None
for s, p, o in query_results:
print s, p, o
print s.encode('utf-8'), p.encode('utf-8'), o.encode('utf-8')
uri = unicode(s).strip()
key = unicode(p).strip()
value = unicode(o).strip()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment