David Wennergren
2006-Jun-28 10:42 UTC
[Ferret-talk] Problem searching with special characters
I''m using Ferret on a Swedish website and I get some unexpected behaviour on searches containing the swedish charchters ???. An exampel, if I index a string "Varf?r fungerar det inte" ("Why doesnt it work" in swedish) and search for "f?r" I''ll get one (1) match. The expected behaviour would be no matches since ''f?r'' is part of the word ''varf?r''. And if I do a search for "varf?*" it returns no matches. Expecting one. My guess is that it has something to do with the UTF-8 encoding but I can''t seem to figure out exactly what is is... I''m using the StandardAnalyzer b.t.w. Any ideas? Thanks /David -- Posted via http://www.ruby-forum.com/.
David Balmain
2006-Jun-28 15:03 UTC
[Ferret-talk] Problem searching with special characters
Hi David, Are you using Windows? Ferret on Windows won''t handle UTF-8 unfortunately. If not, could you check your locale? "puts Ferret.locale". You can try setting the locale too. Let me know if you are still having problems. Cheers, Dave On 6/28/06, David Wennergren <david.wennergren at gmail.com> wrote:> I''m using Ferret on a Swedish website and I get some unexpected > behaviour on searches containing the swedish charchters ???. > > An exampel, if I index a string "Varf?r fungerar det inte" ("Why doesnt > it work" in swedish) and search for "f?r" I''ll get one (1) match. The > expected behaviour would be no matches since ''f?r'' is part of the word > ''varf?r''. > > And if I do a search for "varf?*" it returns no matches. Expecting one. > > My guess is that it has something to do with the UTF-8 encoding but I > can''t seem to figure out exactly what is is... > > I''m using the StandardAnalyzer b.t.w. > > Any ideas? > > Thanks > > /David > > > > > > > > > -- > Posted via http://www.ruby-forum.com/. > _______________________________________________ > Ferret-talk mailing list > Ferret-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/ferret-talk