Show incorrect symbols for some language in product category

ThemeBurn SupportForumsOpenCart ThemesShoppica OpenCart ThemeShow incorrect symbols for some language in product category

This topic has been marked as resolved.

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.

 kspy
November 12, 2011 at 6:39 pm #3471

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>

 kspy
November 12, 2011 at 7:04 pm #3472

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

November 14, 2011 at 6:36 pm #3521
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.