Special charachters search mongodb

Problem

Possible Duplicate:
Mongodb match accented characters as underlying character

I'm from a country where we have more characters than English alphabet. Basically what I want to do is:

I have word ščumnik, and I want to search in database for šcumnik, scumnik, sčumnik,

š=s
ž=z
č=c
é=e
...

I want to ignore everything above letter.

Problem courtesy of: ewooycom

Solution

Question on how to remove diacritics at StackOverflow

Article with listing in JavaScript

After diacritics is removed, you can use the resulted value for example for searching and index building.

Solution courtesy of: Vladimir

Discussion

There is currently no discussion for this recipe.

This recipe can be found in it's original form on Stack Over Flow.