stubgen
produces UnicodeEncodeError
and doesn't allow setting an encoding
#11031
Labels
stubgen
produces UnicodeEncodeError
and doesn't allow setting an encoding
#11031
Bug Report
Can't use
stubgen
in Windows if the source contains special characters not belonging to the current "code page".To Reproduce
example.py
with UTF-8 encoding and the following contents:stubgen -m example -o .
Expected Behavior
Should execute normally:
Actual Behavior
Error:
Your Environment
Notes
The problem seems to be this
open
here, without anencoding
argument. Perhaps the encoding could be passed via command line argument, or via an environment variable?The text was updated successfully, but these errors were encountered: