in environment.rb, i add the following code
$KCODE = 'u'
require 'jcode'
ENV['LANG'] = 'en_US.utf8'
require 'acts_as_ferret'

in my model, topic.rb
acts_as_ferret :fields => [:subject, :body], :analyzer =>
Ferret::Analysis::RegExpAnalyzer.new(/./,false)

it doesn't work when i input the chinese word to search!

I don't know how to do!

-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to