This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Anthony Sottile
Recipients Anthony Sottile, martin.panter, python-dev, Александр Эри
Date 2016-04-20.14:34:55
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <CA+dzEB=neMXB8LWcNum+MOAQ+UcQFzVQ9uE3C35J4XG27b=2tA@mail.gmail.com>
In-reply-to <1461149178.91.0.579920262353.issue26717@psf.upfronthosting.co.za>
Content
PEP3333 states that environ variables are str variables decoded using
latin1:
https://www.python.org/dev/peps/pep-3333/#id19

Therefore, to get the original bytes, one must encode using latin1
On Apr 20, 2016 3:46 AM, "Александр Эри" <report@bugs.python.org> wrote:

>
> Александр Эри added the comment:
>
> Why wsgiref uses latin1? It must use utf-8.
>
> ----------
> keywords: +patch
> nosy: +Александр Эри
> Added file: http://bugs.python.org/file42531/simple_server.py.diff
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <http://bugs.python.org/issue26717>
> _______________________________________
>
History
Date User Action Args
2016-04-20 14:34:55Anthony Sottilesetrecipients: + Anthony Sottile, python-dev, martin.panter, Александр Эри
2016-04-20 14:34:55Anthony Sottilelinkissue26717 messages
2016-04-20 14:34:55Anthony Sottilecreate