product description utf-8 problem

I notice on product description utf-8 problem showing diamond at end of the line

after some searching in google i found this

open the desired module from catalog\controller\module

like latest module is latest.php

on line  82 (opencart


'description' => substr(strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8')), 0, 100) . '..',

with this:

'description' => mb_substr(strip_tags(html_entity_decode($result['description'], ENT_QUOTES, 'UTF-8')), 0, 100, 'UTF-8') . '..',

notice the change of substr to mb_substr

and adding ‘UTF-8’ as new argument

Date formatting not working after installing qTranslate

after installing qtranslate:

Posted on %e de %B de %Y by johnny

I found a solution for this on the qTranslate forums:

Edit qtranslate_utils.php, line 151 from this:
$date_parameters[] = ‘#%#’; $strftime_parameters[] = ‘%%’;
to this:
$date_parameters[] = ‘#%#’; $strftime_parameters[] = ‘%’;

It seems the extra percentage sign makes it so the percentage sign in the format gets interpreted as literal percentage signs and therefore they don’t get parsed by strftime().