[Answered ]-Cannot decode/encode in UTF-8

1👍

Solved!

I had escape(word) …in the javascript …before I passed it to the server.

👤TIMEX

1👍

Did you remember to put:

accept-charset="utf-8"

in the form tag?

EDIT: Is the DEFAULT_CHARSET in settings.py set to ‘utf-8’ ?

0👍

Is there any reason to use print word? If not, its should work without those lines.

def form_process(request):
    word = request.GET.get('the_word')
👤YOU

Leave a comment