Skip to content

uWSGI Gateway: UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 #431

Answered by rezib
gianlucagiacometti asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @gianlucagiacometti, I think this can be due to the default locale in your container. You may have to install additional locales in your container (see https://stackoverflow.com/a/59292909 for instance) and change default locale to something like en_US.UTF-8 or force PYTHONIOENCODING="UTF-8" for uwsgi service.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@gianlucagiacometti
Comment options

@gianlucagiacometti
Comment options

@rezib
Comment options

rezib Jan 4, 2025
Maintainer

Answer selected by rezib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants