magmax/python-inquirer

Unable to input Nordic characters

axolul opened this issue · 3 comments

axolul commented

Enviroment:

  • Windows 10 Pro 22H2
  • Python 3.11.6
  • inquirer 3.1.3

Code:

import inquirer

questions = [
    inquirer.Text('newUUID', message="Anna uusi UUID (paina Enter pitääksesi samana): "),
    inquirer.Text('newName', message="Anna uusi nimi (paina Enter pitääksesi samana): "),
    inquirer.Text('newPrice', message="Anna uusi hinta (paina Enter pitääksesi samana): "),
    inquirer.Text('newCategory', message="Anna uusi kategoria (paina Enter pitääksesi samana): "),
]

We are using inquirer in our school project. It shows Finnish/Nordic characters ä, ö and å normally when it prompts for something. But then the command line goes nuts when you try to input the same characters.

In the picture attached, I inputted "testöäåtest". As you can see, the inquiry line starts to multiply and it goes all wrong from there.

nordic_characters

This is a upstream issue with the readchar library, see magmax/python-readchar#93

Duplicate of #432