ruby on rails - acts_as_ferret with German umlauts -
i managed setup app search based on acts_as_ferret. overall works fine. can't find results words umlauts (e. g. “getränke”).
i added environment.rb , rebuilt index scratch, no better results.
ferret.locale = "de_de.utf-8"
i double checked database table, think should perfect:
default charset=utf8 collate=utf8_bin
btw: data displayed fine in database table (viewed sequel pro).
then opened index file textmate search entry “getränke” , fugured, textmate opened mac roman encoding , display umlaut this
getr‰nke
i reopened index file utf-8 encoding, strange charackters displayed rectangles questionmarks.
how can find results searching words german umlauts?
this did trick
environment.rb
$kcode = 'u' env['lang'] = 'de_de.utf-8' ferret.locale = "de_de.utf-8"
database.yml
development: encoding: utf8
Comments
Post a Comment