Topic: imagettftext not display utf-8 if russian or latvian

Top 10 Sold Items in fiscal year - graphic not display - āĀ Вот

Not work function imagettftext  latvia and russian in file class.graphic.inc.

Add some modification in file  class.graphic.inc.

line after 962

================
$out = '';
$string = mb_convert_encoding($string, 'HTML-ENTITIES',"UTF-8");
// Convert HTML entities into ISO-8859-1
$string = html_entity_decode($string,ENT_NOQUOTES, "ISO-8859-1");
// Convert characters > 127 into their hexidecimal equivalents
for($i = 0; $i < strlen($string); $i++) {
    $letter = $string[$i];
    $num = ord($letter);
    if($num>127) {
      $out .= "&#$num;";
    } else {
      $out .=  $letter;
    }
}

$string = $out;

==============
after this work fine.

Re: imagettftext not display utf-8 if russian or latvian

This has recently been solved in 2.3 RC3 and is going into final 2.3. But thanks anyhow. We have changed to a better font also.
But if your solution works, you might just use it this way.

/Joe