Skip to content

Mailadress with hex character C2 A0 (UTF8 no-break space) is considered valid #386

Open
@manuelkiessling

Description

@manuelkiessling

The following is my new best friend, an "invisible" character with dec value 194 160, hex value C2 A0:  .

While this GitHub Issues website probably renders it as a normal space (hex 20), it is in reality the UTF-8 "NO-BREAK SPACE" character.
See entry number 2 in the "Encodings" table at https://en.wikipedia.org/wiki/Non-breaking_space.

I've also attached file c2a0-demo.txt which contains an address with the problematic character.

EmailValidator considers an email address like j.doe @example.com, with C2 A0 in front of the @ symbol, as valid, while j.doe @example.com, with a "normal" hex 20 space in front of the @, is considered invalid.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions