![]() |
Encoding Problem
Hello,
I just installed phpdig and like it a lot. But I'm having problems implementing the ISO-8859-9 encoding. I searched the forum and found some threads on this subject but they were quite old. Since there are some new versions available, I was wondering if the way to add them is still the same. I looked at this thread but I'm confused. Mr Charter says... Quote:
So, do I just add only the characters that are not available in other character sets? For example, should I create line something like this? $phpdig_string_subst['iso-8859-9'] = 'put the different characters here'; I don't understand the purpose of the colons. If somebody can show me for just one character, I think I can go from there. Thank you. |
Remove any spaces in each line, and try using the following in the config file.
Code:
define('PHPDIG_ENCODING','iso-8859-9'); |
Thank you very much! :) It worked great except for one thing.
When I insert "define('PHPDIG_ENCODING','iso-8859-9');" , encoding problem is totally gone, but search can not find most of the results. When I change it to 8859-1 and search with the same keyword, it finds a lot of results. Could it because I indexed using 8859-1? Would it help if I clear the index and make another one by using 8859-9? Or is that irrelevant? Again, thank you so much. :) |
After further inspection I found out that the above problem occurs only when more than one keyword is entered.
For example, if I enter "bruce", it works great. But if I enter "bruce campbell", then it does not find anything. (finds a lot with 8859-1). I looked at the admin panel >last search queries and it shows the keyword as this: bruceòcampbell So, it somehow converts the space character to the "ò" character, thus it can't find any results. |
The issue may be that you indexed using iso-8859-1 but now want search results displayed as iso-8859-9 so try a reindex and search on a site that is encoded iso-8859-9, and set PhpDig to use iso-8859-9 for everything.
|
All times are GMT -8. The time now is 04:00 AM. |
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.