Commit 2046bf0d authored by Vincent Pelletier's avatar Vincent Pelletier

Replace unknown chars instead of raising.

parent c3996129
...@@ -799,7 +799,8 @@ period_parser = { ...@@ -799,7 +799,8 @@ period_parser = {
), ),
} }
unquoteToHtml = lambda x, encoding: escape(unquote(x).decode(encoding)) unquoteToHtml = lambda x, encoding: escape(unquote(x).decode(encoding,
'replace'))
def asHTML(out, encoding, per_site, args, default_site, period_parameter_dict, def asHTML(out, encoding, per_site, args, default_site, period_parameter_dict,
stats, site_caption_dict): stats, site_caption_dict):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment