Skip to content

Wrong mojibake fix for: âš´ #149

@MicroJackson

Description

@MicroJackson

Hi,
Ftfy fixes this problem incorrectly.

U+00E2  â       [Ll] LATIN SMALL LETTER A WITH CIRCUMFLEX
U+0161  š       [Ll] LATIN SMALL LETTER S WITH CARON
U+00B4  ´       [Sk] ACUTE ACCENT
SHOULD BE:
U+00EB  ë       [Ll] LATIN SMALL LETTER E WITH DIAERESIS
But FTFY fixes to: 
U+26B4  ⚴       [So] PALLAS

Example:

Officiâš´le gecreâš´erde patatten becomes Offici⚴le gecre⚴erde patatten
print(ftfy.fix_text("Officiâš´le gecreâš´erde patatten", uncurl_quotes=False))

Is it possible to fix this?

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