pydoc3.5 borks on my Mac

Peter Otten __peter__ at web.de
Sun Feb 1 12:20:03 EST 2015


Skip Montanaro wrote:

> I finally got sort of smart, and started up a pydoc server. Looking at
> the sqlite3 docs through my browser, I see right off the bat, I see
> 
> #-*- coding: ISO-8859-1 -*-
> # pysqlite2/__init__.py: the pysqlite2 package.
> #
> # Copyright (C) 2005 Gerhard Häring <gh at ghaering.de>
> 
> so my challenge is how to tell Python my terminal's encoding? It's
> clearly assuming ASCII. Mine is actually normally set to UTF-8, but I
> can select from a number of different encodings in the Preferences.

Try setting the environment variable

PYTHONIOENCODING=UTF-8




More information about the Python-list mailing list