When the productname on a category view page is shortened it creates a problem with the danish characters as they are replaced with a question mark sign like this "gr�…" where it should have said "gr
2 answers
Hi
It seems to be charset issue and you can try to use mb_substr() function:
echo mb_substr($_product->getName(),0, 30, ‘utf-8′).’…’;
Also make sure that you have mbstring enabled on your server. Here’s the php docs: http://php.net/manual/en/book.mbstring.php
Then flush magento cache.
This one worked thanks.
echo mb_substr($_product->getName(),0, 37, ‘UTF-8′).’…’;
This question is now closed