# Case sensitive with umlauts?

**URL:** <https://www.ruby-forum.com/t/case-sensitive-with-umlauts/144434>\
**Category:** Ferret\
**Created:** [July 29, 2008, 5:33pm UTC](https://www.ruby-forum.com/t/case-sensitive-with-umlauts/144434 "2008-07-29T17:33:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tobstarr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/b5ac83/32.png) [@tobstarr](https://www.ruby-forum.com/u/tobstarr)\
**Post date:** [July 29, 2008, 5:33pm UTC](https://www.ruby-forum.com/t/case-sensitive-with-umlauts/144434/1 "2008-07-29T17:33:49Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![tobstarr](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/b5ac83/32.png) [@tobstarr](https://www.ruby-forum.com/u/tobstarr)\
**Post date:** [October 17, 2008, 5:37pm UTC](https://www.ruby-forum.com/t/case-sensitive-with-umlauts/144434/2 "2008-10-17T17:37:00Z")

</div>

Tobias S.t 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.
