allow unicode in filenames when returning a url

This commit is contained in:
Bryan Bishop 2013-02-16 21:23:39 -06:00
parent 05669229c4
commit 0253a0a9db
1 changed files with 1 additions and 0 deletions

View File

@ -270,6 +270,7 @@ def download_url(url):
file_handler.write(content)
file_handler.close()
title = title.encode("ascii", "ignore")
url = "http://diyhpl.us/~bryan/papers2/paperbot/" + requests.utils.quote(title) + extension
return url