[Python-modules-team] Bug#872887: libapache2-mod-wsgi-py3 not using pythoin3 default encoding

Joerg Dorchain joerg at dorchain.net
Tue Aug 22 07:11:07 UTC 2017

Package: libapache2-mod-wsgi-py3
Version: 4.5.17-1


when trying a wsgi script with libapache2-mod-wsgi-py3, I get an

SyntaxError: Non-ASCII character '\xc2' in file
.../radicale.wsgi on line 4, but no encoding declared; see
http://python.org/dev/peps/pep-0263/ for details

Externally a 500 internal error is shown.

Inserting # coding: utf-8 as second line solves it for me.

Nevertheless utf-8 is the default encoding for python3, and other
modules (notably libapache2-mod-uwsgi and derivates) accept it
without change.

Please consider having libapache2-mod-wsgi-py3 use utf-8 as
default encoding.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 898 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20170822/b917c11b/attachment-0001.sig>

More information about the Python-modules-team mailing list