[BUGFIX] Use UTF-8 by default in Flexforms and Backend
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Resource / Driver / LocalDriver.php
index e90eabc..52a00d7 100644 (file)
@@ -258,11 +258,8 @@ class LocalDriver extends \TYPO3\CMS\Core\Resource\Driver\AbstractDriver {
                        if (!$charset) {
                                if (TYPO3_MODE === 'FE') {
                                        $charset = $GLOBALS['TSFE']->renderCharset;
-                               } elseif (is_object($GLOBALS['LANG'])) {
-                                       // BE assumed:
-                                       $charset = $GLOBALS['LANG']->charSet;
                                } else {
-                                       // best guess
+                                       // default for Backend
                                        $charset = 'utf-8';
                                }
                        }