15954078560 2 years ago
parent
commit
1eecbb5da5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      addons/poster/library/Image.php

+ 1 - 1
addons/poster/library/Image.php

@@ -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);