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

MySql variables and php -

url rewriting - How to implement the returnurl like SO in PHP? -

Which Python client library should I use for CouchdB? -