Hi Ian,
On Thu, Jul 06, 2006 at 11:58:57PM +0200, Ian Zabel wrote:
> I've just installed acts_as_ferret, and am trying to build my index, but
> I'm getting the following error:
>
> >> r = Topic.find_by_contents('testing')
> StandardError: : Error occured at <analysis.c>:704
> Error: exception 2 not handled: Error decoding input string. Check that
> you have the locale set correctly
[..]
> I have tried setting my locale in environment.rb as mentioned here
> http://projects.jkraemer.net/acts_as_ferret/wiki/TypoWithFerret (note:
> i'm not using typo, but the locale note at the bottom seems to apply).
>
> So in the Rails::Initializer.run block, I've put this line: ENV['LANG']
> = 'en_US.UTF-8'
>
> Didn't make a difference. Any other ideas?
I put this statement at the very top of the file, outside of the block.
Maybe that will do the trick.
You also should make sure the locale exists on your system. On
a Debian-based system, you could do
dpkg-reconfigure locales
and make sure the box before "en_US.UTF-8" is ticked.
Hope this helps,
Jens
--
webit! Gesellschaft für neue Medien mbH www.webit.de
Dipl.-Wirtschaftsingenieur Jens Krämer [EMAIL PROTECTED]
Schnorrstraße 76 Tel +49 351 46766 0
D-01069 Dresden Fax +49 351 46766 66
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk