what is the right way to do it if the URL has some unicode chars in it, and is escaped in the client side using javascript ( escape(text) )? For example, if my url is: domain.com/?text=%u05D0%u05D9%u05DA%20%u05DE%u05DE%u05D9%u05E8%u05D9%u05DD%20%u05D0%u05EA%20%u05D4%u05D8%u05E7%u05E1%u05D8%20%u05D4%u05D6%u05D4
I tried:
text = urllib.unquote(request.GET.get('text'))
but I got the exact same string back (%u05D0%u05D9%u05DA%20%u05DE ... )
eventually what I did is changed the client side from escape(text) to urlEncodeComponent(text)
and then in the python side used:
request.encoding = 'UTF-8' 
text = unicode(request.GET.get('text', None))
Not sure this is the best thing to do, but it works in English and Hebrew
How to convert unicode escape sequence URL to python unicode?