From 11996ce12e4e8c02f6c7f5e291b21b7635c09af5 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 25 Feb 2011 22:43:01 +0000 Subject: [PATCH] bug fix for international encoded letters --- lib/core/convert.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/core/convert.py b/lib/core/convert.py index cdc70721d..70acf8297 100644 --- a/lib/core/convert.py +++ b/lib/core/convert.py @@ -66,7 +66,12 @@ def urldecode(value): result = None 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