Hello guys,
I'm testing sphider.
As you know when you have a keyword "Book" in your web site and when you search "book" or "BOOK" or "Book" they all match the same page and highlight "Book". My problem is:
I use windows-1254 charset and I made my mysql table charset as latin5_turkish_ci and my html pages have windows-1254 charset. For example I have "AĞRI" in one of my page title. When I search "ağrı", It does not it only search for "ağrı" not "AĞRI" and as a result highlights "ağrı" only. Another example:
I have "ÇANAKKALE" in one of my pages. When I search "çanakkale" it says "did you mean Çanakkal" not "did you mean Çanakkale" and as a results returns no hit.
1- How can we define the script that both "ğ" and "Ğ" or , "ç" and "Ç", "ş" and "ş", "ı" and "I" are the same characters with just different cases and it should search without case sensitive as in case of other non special characters?
(Maybe by editing "commonfuncs.php" in line sttarting form 78 :
$entities = array
(
"&" => "&",
"&apos" => "'",
"Þ" => "Ş",
"ß" => "ß",
"à" => "à",
"á" => "á",............
)
Thanks in advance...
Edited 2 time(s). Last edit at 12/22/2011 08:09PM by test-sphider.