Show incorrect symbols for some language (russian in my case) in product category. This reproduced if you switch to the list. Sorry for my english.
|
|
I answer the question: replace function subst to mb_substr and set utf-8 encoding.
in category.tpl:
<p class="s_description"><?php echo mb_substr($products[$i]['description'], 0, 200, 'UTF-8'); ?>...</p>
|
|
Good catch!
However, the more appropriate solution would be to use utf8_substr insted of mb_substr, so the code becomes:
<p class="s_description"><?php echo utf8_substr($products[$i]['description'], 0, 200); ?>...</p>
Thanks for the suggestion, we will change this in the next Shoppica release.
Best Regards,
ThemeBurn team
|
|