Hi,
If the firstletter of a brand or a category is non-english I see a question mark instead of the firstletter. But the page correctly displays the category names e.g. "Şal", "Şalter" etc. The only firt letters have displayed as weird letter. What could be the reason?
Cheers.
Hi David,
I made the change, but it gives an empty page...
Cheers,
Hi Kempo,
Sorry about that - it would imply that the multi-byte PHP extensions are not installed on your server. Bear with me, and I'll work out a method to achieve the same thing but without the multibyte libraries installed.
In the mean time, if you are running on a dedicated server with access to your PHP configuration, or your host would be willing to compile the multibyte extensions into the PHP installation for you, check the following page for details of the requirements...
http://www.php.net/manual/en/mbstring.installation.php
Cheers,
David.
Hi David,
I have dedicated server so, I installed it with the following command:
yum install php-mbstring
and it is installed without any problem. And it solved the problem of getting blank page, but it did not solved the weird first letter for non-english letters. What should I do more?
Cheers,
Hi Kempo,
Can you try it like this to make sure that it is using the correct character set:
$firstLetter = strtoupper(mb_substr($item["name"],0,1,$config_charset));
Hope this helps,
Cheers,
David.
Hi David,
It is solved the problem. Thank you very very much for the great supoort.
Cheers,
Kempo.
Hi David,
I was not sure if I create a new topic so, I prefered not. Your final suggestion has solved my problem, but every solution creates new problems:). Now I want to add some category mappings, but I have problem with category names which contains non-english letters. When I try to add a category named e.g. "Oto Koltuğu" to the category mapping section I am getting the following error and can't add the category to the mapping list:
• category name contains invalid characters
I also recognized that the same applies to the merchant names.
Cheers,
Kemal.
Hello Kemal,
To fix that, in admin/categories.php look for the following code beginning at line 20:
if(!ereg("^[0-9a-zA-Z\. ]{0,255}$",widget_posted($_POST["name"])))
{
widget_errorSet("name","category name contains invalid characters");
}
..and REPLACE with:
if(!$_POST["name"])
{
widget_errorSet("name","required field");
}
You will then be able to enter category names unrestricted...
Cheers,
David.
Hi Kempo,
In html/atoz.php, look for the following code at line 17:
$firstLetter = strtoupper(substr($item["name"],0,1));
...and REPLACE that with:
$firstLetter = mb_strtoupper(mb_substr($item["name"],0,1));
Hope this helps!
Cheers,
David.