Skip to content

Console with emoji mess up the formatting #37904

Closed
@HarasimowiczKamil

Description

@HarasimowiczKamil

Symfony version(s) affected: 5.1.3

Description

Emoji mess up the formatting. The border is not even.

How to reproduce

protected function execute(InputInterface $input, OutputInterface $output)
{
    $io = new SymfonyStyle($input, $output);
    $io->error("Some error message \u{1F625}");
    return Command::FAILURE;
}

Screen shot 2020-08-21 09-02-27

Possible Solution

Something with string length count and encoding

Additional context

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