Page 1 of 1

Pisearch 1.71 and special characters

Posted: Tue Oct 17, 2006 9:31 am
by kode_fi
Hi

I can't get Pisearch 1.71 to find strings containing special characters (öäå)
I've tried fresh install of operating system and cmsms 1.02 on Centos 4.4 and Fedora Core 5 with same results. It makes no difference if I use FckeditorX to add content or not, so problem is not &umlaut;-coding or lack of it.
I've tried adding  'default_encoding' value to utf-8 in config.php but it doesn't help

Thanks,

Teemu

Re: Pisearch 1.71 and special characters

Posted: Sat Oct 21, 2006 6:04 pm
by Piratos
Try version 1.72 (is ready in the dev)

Re: Pisearch 1.71 and special characters

Posted: Wed Oct 25, 2006 10:12 am
by kode_fi
Thanks Piratos!!

With pisearch 1.72 ä encoded characters are found from content.
If I set default_encoding from config.php, pisearch seems to use ISO-8859-1.
I think this line from pisearch.module.php sets encoding to 8859-1 if encoding is set at config.php

Code: Select all

if ($config['default_encoding']=="") $encoding='UTF-8'; else $encoding ="ISO-8859-1";
I am still not able find strings containing special characters in Title or Menu Text fields using default search module or pisearch 1.72. If I encode those characters manually (ä --> ä) into mysql database, then both search modules works. Problem is that ä from title or menu text doesn't decode to ä at web page.


Thanks

teemu

Re: Pisearch 1.71 and special characters

Posted: Wed Oct 25, 2006 10:33 am
by cyberman
kode_fi wrote: Problem is that ä from title or menu text doesn't decode to ä at web page.
... cause Admin panel wrotes ä to database.