Username completition broken for names with accents like Régis

In Europe, we have quite a few countries with numerous non-ASCII first and lastnames: Máté,
Zétény, Márton, Clémence, Léonie, Aïcha, etc.

So if for instance our German and English speaking forum users try to find or tag those people without having these accents on their keyboard, one might believe the database is incomplete. They just don’t appear if you type the first few letters.

tl;dr: Having this working is really important for regions with more heterogeneous character sets.

Rails should have some helpers therefore:

1.9.3p392 :001 > require "i18n"
 => true
1.9.3p392 :002 > I18n.transliterate("Hé les mecs!")
 => "He les mecs!"
1 Like