Skip to content

QuestionHelper input breaks UTF-8 characters #37495

Closed
@Bast1onCZ

Description

@Bast1onCZ

Symfony version(s) affected: 5.1.0

Description
When an UTF-8 character is confirmed in a console as a response to QuestionHelper's question, it gets replaced by '\' or ''.
E.g. 'Čeština' > 'e\tina'. My OS is Windows 10.

How to reproduce

// inside Command::execute

$response = $questionHelper->ask($input, $output,
    new Question("Write something containing UTF-8 characters")
);
// response contains UTF-8 characters replaced by '\' or removed

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions