[Answer]-Django/Python encoding โ€“ ''ascii' codec can't decode byte 0xc5 in position 52'

1๐Ÿ‘

โœ…

Does your application name have non-ascii characters?

๐Ÿ‘คTim Lamballais

0๐Ÿ‘

On Linux, make sure you install language-pack-xx package, e.g.

sudo apt-get install language-pack-en

in order to provide English translation data updates for all supported packages (including Python).


Then make sure to set your locale settings right before running your script from the terminal, e.g.

$ locale -a | grep "^en_.\+UTF-8"
en_GB.UTF-8
en_US.UTF-8
$ export LC_ALL=en_GB.UTF-8
$ export LANG=en_GB.UTF-8

Docs: man locale, man setlocale.

๐Ÿ‘คkenorb

Leave a comment