On Tue, Sep 04, 2007 at 11:28:11AM +0200, Igor K. wrote:
> Jens Kraemer wrote:
> > On Sun, Sep 02, 2007 at 12:03:59PM +0200, Igor K. wrote:
> >>   ENV['LC_TIME'] = 'C'
> >>   require 'acts_as_ferret'
> >> 2) next i using scaffold added few posts(my model, that i index this
> >> way:
> >>     acts_as_ferret :fields => [ :name, :post ]
> >> 
> 
> > Does this apply for searching via a web form, or in unit tests? Maybe
> > non-ascii characters in your queries get garbled before ferret even gets
> > to see them?
> 
> No, i use UTF8 in database, controllers, environment.rb
> When i do search like Post.find(:all, :conditions => ['name like ?', 
> 'SOME-UTF8-TEXT']) it founds.
> 
> Have anybody looked at my test project in attachment?

Yes, I did. After changing the line setting ENV['LANG']
to 'en_US.UTF-8' in config/environment.rb (because I don't have
the [EMAIL PROTECTED] locale installed on my system) it works perfectly.

Before it didn't, and I couldn't even enter german umlauts on the rails
console.

So you should make sure the locale you set LANG to also exists on your
system. 'dpkg-reconfigure locales' can be used on Debian/Ubuntu to check
which locales you have and enable more if you like.

cheers,
Jens


-- 
Jens Krämer
webit! Gesellschaft für neue Medien mbH
Schnorrstraße 76 | 01069 Dresden
Telefon +49 351 46766-0 | Telefax +49 351 46766-66
[EMAIL PROTECTED] | www.webit.de
 
Amtsgericht Dresden | HRB 15422
GF Sven Haubold, Hagen Malessa
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to