Is there any way to write a search function that can search for words
that contain accented characters when the user types in words without
accented characters?

My database has a lot of names in it that have characters with accents
and other non-keyboard characters.  When users search the database, I
would like for them to be able to find records with accented characters
even if they don't type in the accent.  For instance, a user might be
searching for a text by the author Chrétien de Troyes.  Right now, they
have to type "Chrétien" into the search form to find him: I would like
for a search for "Chretien" to also find "Chrétien."

This strikes me as a rather common problem: is there a good solution for
it?
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to