Ruby Forum Ferret > case sensitive with umlauts ?

Posted by Tobias Schmidt (grobie)
on 29.07.2008 17:33
Hi all,

i've got a problem with words which contain (german) umlauts (ä,ö,
etc.). Here are some examples:

indexed words: schäfer, hund
query "hund" -> hit
query "Hund" -> hit
query "schäfer" -> hit
query "Schäfer" -> no hit

(Same results, if the indexed words have got a capital.)

What can I do to get a case insensitive search? I added these two lines
to my environment.rb:
ENV['LANG'] = 'de_DE.UTF-8@euro'
ENV['LC_TIME'] = 'C'

Thanks for help
Posted by Tobias Schmidt (grobie)
on 17.10.2008 17:37
Tobias Schmidt wrote:
> Hi all,
> 
> i've got a problem with words which contain (german) umlauts (ä,ö,
> etc.). Here are some examples:
> 
> indexed words: schäfer, hund
> query "hund" -> hit
> query "Hund" -> hit
> query "schäfer" -> hit
> query "Schäfer" -> no hit
> 
> (Same results, if the indexed words have got a capital.)
> 
> What can I do to get a case insensitive search? I added these two lines
> to my environment.rb:
> ENV['LANG'] = 'de_DE.UTF-8@euro'
> ENV['LC_TIME'] = 'C'
> 
> Thanks for help

I fixed the problem. There was no locale "de_DE.UTF-8@euro" on the 
server. The solution is very simple: remove @euro in case you have 
de_DE.UTF-8 installed.