[Python] What's "ANSI_X3.4-1968" encoding?

Discussão em 'Python' iniciado por Stack, Fevereiro 20, 2025.

  1. Stack

    Stack Membro Participativo

    See following output on my system:

    $ python3 -c 'import sys; print(sys.stdout.encoding)'
    ANSI_X3.4-1968

    $ locale
    LANG=C
    LANGUAGE=en_US:en
    LC_CTYPE="C"
    LC_NUMERIC="C"
    LC_TIME="C"
    LC_COLLATE="C"
    LC_MONETARY="C"
    LC_MESSAGES="C"
    LC_PAPER="C"
    LC_NAME="C"
    LC_ADDRESS="C"
    LC_TELEPHONE="C"
    LC_MEASUREMENT="C"
    LC_IDENTIFICATION="C"
    LC_ALL=C


    Googled but found very little info about it. Even Python's The Python Library Reference (v3.5.2) does not mention it. Any international standard defines it?


    (Copied the authoritative ref from the accepted answer's comment: Character Sets)

    Continue reading...

Compartilhe esta Página