[Django]-UnicodeDecodeError: 'ascii' codec can't decode byte 0x96 in position 0

8👍

That’s tricky issue. The problem is in how you typed your command:

Wrong:

celery –A runLogProject worker –loglevel=INFO

Correct:

celery -A runLogProject worker -loglevel=INFO

It’s almost impossible to spot a difference. In first to pass parameters -A and -loglevel are used dashes (ascii code: 8211) but should by hyphens (ascii code 45).

If you are using OSX, it could be triggered because you pressed ALT together with hyphen/minus key or you just copy pasted it from some blog which uses weird autocorrect.

Leave a comment