[Python] Why does VS Codes's Python REPL window output letters with wrong encoding?

Discussão em 'Python' iniciado por Stack, Novembro 21, 2024.

  1. Stack

    Stack Membro Participativo

    My file setting in VS Code is set to UTF-8 (default) rendering. If I run my line via Shift+Enter, the python Native REPL opens but i get the wrong encoding as i show below. However, If i run using the interactive window (jupyter) or via the terminal I get the correct rendering.

    example code:

    print('Accented letters: á, é, í, ó, ú, ü, ñ')


    I get this wrong output as follows:

    Accented letters: á, é, Ã, ó, ú, ü, ñ

    Continue reading...

Compartilhe esta Página