From 0253a0a9db7cad36934236b10da99919632fa211 Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Sat, 16 Feb 2013 21:23:39 -0600 Subject: [PATCH] allow unicode in filenames when returning a url --- modules/papers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/papers.py b/modules/papers.py index 1a36b96..e86e2c0 100644 --- a/modules/papers.py +++ b/modules/papers.py @@ -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