diff options
Diffstat (limited to 'Lib/urllib.py')
-rw-r--r-- | Lib/urllib.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/urllib.py b/Lib/urllib.py index bc16be0..f00d02f 100644 --- a/Lib/urllib.py +++ b/Lib/urllib.py @@ -1061,6 +1061,8 @@ def unquote(s): res[i] = _hextochr[item[:2]] + item[2:] except KeyError: res[i] = '%' + item + except UnicodeDecodeError: + res[i] = unichr(int(item[:2], 16)) + item[2:] return "".join(res) def unquote_plus(s): |