summaryrefslogtreecommitdiffstats
path: root/module/Utils.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-05-31 21:56:25 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-05-31 21:56:25 +0200
commitb26daf96006e16cfca296b9f78021254b6e6fa8f (patch)
treed1166be13ba2942a68bf55656b82845708d09e91 /module/Utils.py
parentfixed positional captchas + availbillity over thrift (diff)
downloadpyload-b26daf96006e16cfca296b9f78021254b6e6fa8f.tar.xz
automatically try to decode all request according to http header
Diffstat (limited to 'module/Utils.py')
-rw-r--r--module/Utils.py2
1 files changed, 1 insertions, 1 deletions
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