summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/url_titles.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/url_titles.py b/modules/url_titles.py
index 932e557..966b71b 100644
--- a/modules/url_titles.py
+++ b/modules/url_titles.py
@@ -107,7 +107,7 @@ class Module:
if m:
s = m.groups()[0]
if enc:
- s = s.decode(enc).encode('utf8')
+ s = s.decode(enc, 'replace').encode('utf8', 'replace')
titles.append(s)
elif u.headers['content-type'] in ('image/gif', 'image/png', 'image/jpeg'):
def pretty_size(size):