Forums » Ferret » Problem searching with special characters

Problem searching with special characters
Posted by David Wennergren (Guest)
on 28.06.2006 12:42
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






Re: Problem searching with special characters
Posted by Mattias Bud (mattias)
on 09.11.2006 14:49
Hi

Did you find a solution? - I have the same problem but with danish.


/mattias
Re: Problem searching with special characters
Posted by David Balmain (Guest)
on 28.06.2006 17:06
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