Permalink
Browse files

Cope with unicode data

  • Loading branch information...
1 parent ffb156b commit e7f2e9826c51185253f1d93b1126e42c5ab79b2c @palfrey committed Oct 1, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 literotica.py
  2. +1 −1 urlgrab
View
@@ -12,7 +12,7 @@
page = cache.get(url, max_age = -1)
data = page.read()
-open("dump", "wb").write(data)
+open("dump", "wb").write(data.encode("utf-8"))
title = titlePattern.findall(data)
print title
Submodule urlgrab updated 1 files
+13 −0 URLTimeoutCurl.py

0 comments on commit e7f2e98

Please sign in to comment.