Closed
Description
Symfony version(s) affected: 5.0.7
Description
In a command, when the user answers a question with special characters with accents (é, è, à, ...); the output doesn't consider these characters and removes them from the string.
How to reproduce
- Create a command
- In the
execute
method, write the code below:
$io = new SymfonyStyle($input, $output);
$userInput = $io->ask('Type here');
$io->writeln($userInput);
return 0;
- Execute the command and type such as
Bonjour à tous !
- The output should be
Bonjour \ tous !
I've reproduced the project in a repository.
Possible Solution
It's possibly the encoding of my terminal or in the source code.
Additional context
I use the Windows Terminal Preview with Git Bash. And I've tested on the Windows terminal.