Jump to content

FieldCache search and umlauts


Torsten Baldes
 Share

Recommended Posts

I'm about to build a search function for a site and noticed, that search queries/selectors with FieldCache and umlauts don't work.

e.g. headline = "Steak mit Käse"; fieldcachefield includes headline field

If I search for "Steak" i get the right result. If I search for "Käse" i get nothing.

here's my code:

if($q = $sanitizer->selectorValue($input->get->q)) {

    $input->whitelist('q', $q);

    $matches = $pages->find("fieldcachefield%=$q");
}

In the db table for this fieldcache-field all the umlauts are encoded like this K\u00e4se

If I use headline as selector, the right result pops up.

What could i do, to use FieldCache with umlauts?

Thanks!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...