diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2013-06-13 23:57:06 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2013-06-13 23:57:06 +0200 |
commit | 5da7ed157de9b34ec17f975a81b8a2912a45a31e (patch) | |
tree | 1afd7b4f0a23582f66888244543cb6062200c93a /modules | |
parent | 70d9d9ec4dc48362ea00756f957aae231118a59e (diff) |
url_titles: Use 'replace' as error handling scheme for encoding errors.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/url_titles.py | 2 |
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): |