From b26daf96006e16cfca296b9f78021254b6e6fa8f Mon Sep 17 00:00:00 2001 From: RaNaN Date: Tue, 31 May 2011 21:56:25 +0200 Subject: automatically try to decode all request according to http header --- module/Utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'module/Utils.py') diff --git a/module/Utils.py b/module/Utils.py index 6808f6862..4605aaf75 100644 --- a/module/Utils.py +++ b/module/Utils.py @@ -18,7 +18,7 @@ def chmod(*args): def decode(string): """ decode string with utf if possible """ try: - return string.decode("utf8", "ignore") + return string.decode("utf8", "replace") except: return string -- cgit v1.2.3