Closed reckoner closed 6 years ago
I can't reproduce this. Which OS are you using, and how did you install DocOnce?
When I do:
import locale
locale.getpreferredencoding()
I get the following:
'ANSI_X3.4-1968'
I'm betting that you get the UTF-8
output?
This is fixable with the following environment variable:
export LANG=C.UTF-8
Yes, I get UTF-8
, since my LANG
is set to en_GB.UTF-8
.
DocOnce users should ensure that the locale environment variables (LC_ALL
, LANG
, etc.) are set to some value on the form *.UTF-8
.
With respect to Python 3.6, it seems like
pkg_resources
doesn't know how to open the utf8doconce.py
file:I can make this go away by forcing
pkg_resources
to open the file with theutf8
encoding but I was wondering if there is another more support-able way to do this.