[BUGFIX] Use UTF-8 by default in Flexforms and Backend
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Classes / Configuration / FlexForm / FlexFormTools.php
index 4fd009f..f8d17e1 100644 (file)
@@ -408,7 +408,7 @@ class FlexFormTools {
                $spaceInd = $GLOBALS['TYPO3_CONF_VARS']['BE']['compactFlexFormXML'] ? -1 : 4;
                $output = \TYPO3\CMS\Core\Utility\GeneralUtility::array2xml($array, '', 0, 'T3FlexForms', $spaceInd, $options);
                if ($addPrologue) {
-                       $output = '<?xml version="1.0" encoding="' . $GLOBALS['LANG']->charSet . '" standalone="yes" ?>' . LF . $output;
+                       $output = '<?xml version="1.0" encoding="utf-8" standalone="yes" ?>' . LF . $output;
                }
                return $output;
        }