From 85cfa5b196e978424efd9f01af5cc93020dabedf Mon Sep 17 00:00:00 2001 From: Gonzalo Odiard Date: Tue, 05 Oct 2010 12:12:09 +0000 Subject: fix #8857 - Browse fails to download some files with non-ascii characters --- diff --git a/downloadmanager.py b/downloadmanager.py index dd75783..0c97184 100644 --- a/downloadmanager.py +++ b/downloadmanager.py @@ -130,8 +130,9 @@ class Download: self._last_update_percent = 0 self._stop_alert = None - dom_window = _dest_to_window[self._target_file.path] - del _dest_to_window[self._target_file.path] + file_path = self._target_file.path.encode('utf-8', 'replace') + dom_window = _dest_to_window[file_path] + del _dest_to_window[file_path] view = hulahop.get_view_for_window(dom_window) print dom_window -- cgit v0.9.1