|
@@ -116,7 +116,7 @@ class Image
|
|
|
$data['color'] = '#000';
|
|
|
}
|
|
|
|
|
|
- $text = mb_convert_encoding($text, "UTF-8", "GB2312");
|
|
|
+ $text = mb_convert_encoding($text, "GB2312", "UTF-8");
|
|
|
$colors = $this->hex2rgb($data['color']);
|
|
|
$color = imagecolorallocate($this->target, $colors['red'], $colors['green'], $colors['blue']);
|
|
|
imagettftext($this->target, $data['size'], 0, $data['left'], $data['top'] + $data['size'], $color, $font, $text);
|