Skip to content

PYTHONIOENCODING is ignored (at least on Windows) #10011

@lv-gh

Description

@lv-gh

Is this normal behavior (couldn't find any clarifications on that)?

ipython -c "import sys, os; print(os.environ['PYTHONIOENCODING']); print(sys.stdin.encoding); print(sys.stdout.encoding);"
ISO-8859-13
utf-8
utf-8

versus:

python -c "import sys, os; print(os.environ['PYTHONIOENCODING']); print(sys.stdin.encoding); print(sys.stdout.encoding);"
ISO-8859-13
ISO-8859-13
ISO-8859-13

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions