Torsten Baldes Posted September 5, 2014 Posted September 5, 2014 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!
Soma Posted September 5, 2014 Posted September 5, 2014 Plz file an issue on github. Better for Ryan to spot soon.. 1
Torsten Baldes Posted September 5, 2014 Author Posted September 5, 2014 done. https://github.com/ryancramerdesign/ProcessWire/issues/641 3
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now