diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-05-31 21:56:25 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-05-31 21:56:25 +0200 |
commit | b26daf96006e16cfca296b9f78021254b6e6fa8f (patch) | |
tree | d1166be13ba2942a68bf55656b82845708d09e91 /module/Utils.py | |
parent | fixed positional captchas + availbillity over thrift (diff) | |
download | pyload-b26daf96006e16cfca296b9f78021254b6e6fa8f.tar.xz |
automatically try to decode all request according to http header
Diffstat (limited to 'module/Utils.py')
-rw-r--r-- | module/Utils.py | 2 |
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 |