Permalink
Browse files

Merge pull request #1 from mchelem/c0ec5366d1db334f55e7ff709e838c8d8e…

…1e18ce

Tags/URL with non ASCII characters generate encoding exception
  • Loading branch information...
hmason committed Oct 29, 2012
2 parents b05c29f + c0ec536 commit e6d82572abe20dca2bdda0626a6280f44039e152
Showing with 1 addition and 1 deletion.
  1. +1 −1 intro_web_data/delicious_import.py
@@ -34,7 +34,7 @@ def __init__(self, username, password=''):
tags = ",".join([t for t in post.getAttribute('tag').split()])
timestamp = post.getAttribute('time')
- data.append([url, tags])
+ data.append([url.encode("utf-8"), tags.encode("utf-8")])
writer = csv.writer(open("links.csv", 'wb'))
for entry in data:

0 comments on commit e6d8257

Please sign in to comment.