[!!!][TASK] Remove GraphicalFunctions->nativeCharset
[Packages/TYPO3.CMS.git] / typo3 / sysext / frontend / Classes / Imaging / GifBuilder.php
index 932a55c..8d40967 100644 (file)
@@ -627,11 +627,7 @@ class GifBuilder extends GraphicalFunctions
         // Max length = 100 if automatic line braks are not defined:
         if (!isset($conf['breakWidth']) || !$conf['breakWidth']) {
             $tlen = (int)$conf['textMaxLength'] ?: 100;
-            if ($this->nativeCharset) {
-                $conf['text'] = $this->csConvObj->substr($this->nativeCharset, $conf['text'], 0, $tlen);
-            } else {
-                $conf['text'] = substr($conf['text'], 0, $tlen);
-            }
+            $conf['text'] = $this->csConvObj->substr('utf-8', $conf['text'], 0, $tlen);
         }
         if ((string)$conf['text'] != '') {
             // Char range map thingie: