python - django Unicode GET Parameter Values -


I'm trying to get a GET parameter value that looks like this:

In Q Parameter This case is Hebrew I am trying to read the value using the following code:

  request.GET.get ("q", none)  

I find gybrish instead of the correct text Any idea which is wrong here? Do I have some settings?

The query string is in ISO-885 9-8, but Django's default encoding is UTF-8 In order to obtain Unicode data, you must either change the ISO-8859-8.


Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -