[Answered ]-'ascii' codec can't decode byte (problem when using django)

1👍

okay, I got it. All I needed to do was include # -*- coding: utf-8 -*- in the django view as well and that solved it!

1👍

Try putting that line at the top of your file. According to PEP 263, it has to be in the top two lines.

👤Dave

Leave a comment