Skip to content

Accents in non-latin symbols. #217

@k0ka

Description

@k0ka

Hello.

I'm trying to use Inflector::unaccent to compare strings the same way as mysql with utf8_unicode_ci(_ai that can be omitted) collation compare.

I found out that some (or all) cyrillic letters are not unaccented. For example, russian ё (https://www.compart.com/en/unicode/U+0451) and ukrainian ї(https://www.compart.com/en/unicode/U+0457) which are widely used. The mysql compares them properly and removes accents.

How did your compose the Inflector::ACCENTED_CHARACTERS? Can we add non-latin symbols there?

I guess this can be done automatically using official unicode data: https://unicode.org/Public/UNIDATA/UnicodeData.txt
The 6th column shows what is the character composed of (or it's empty if the character is not accented).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions