bug fix for international encoded letters

This commit is contained in:
Miroslav Stampar 2011-02-25 22:43:01 +00:00
parent 63b8156c00
commit 11996ce12e

View File

@ -66,7 +66,12 @@ def urldecode(value):
result = None result = None
if value: if value:
result = urllib.unquote_plus(value) try:
# for cases like T%C3%BCrk%C3%A7e
value = str(value)
result = utf8decode(urllib.unquote_plus(value))
except ValueError:
result = urllib.unquote_plus(value)
return result return result