[TYPO3-dev] FlexForms and utf-8
Thomas Peterson
info at thomas-peterson.de
Thu Jan 19 21:47:27 CET 2006
Hello,
I have rewrite in xml2array in class.t3lib_div.php
It work :-)
if ((double)phpversion()>=5) {
unset($ereg_result);
ereg('^[[:space:]]*<\?xml[^>]*encoding[[:space:]]*=[[:space:]]*"([^"]*)"',substr($string,0,200),$ereg_result);
$theCharset = $ereg_result[1] ? $ereg_result[1] :
($TYPO3_CONF_VARS['BE']['forceCharset'] ?
$TYPO3_CONF_VARS['BE']['forceCharset'] : 'iso-8859-1');
xml_parser_set_option($parser, XML_OPTION_TARGET_ENCODING, $theCharset);
// us-ascii / utf-8 / iso-8859-1
if($ereg_result==NULL) {
$string='<?xml version="1.0" encoding="'.$theCharset.'" standalone="yes"
?>'.$string;
}
//xml_parser_set_option($parser, 'UTF-8', $theCharset);
}
Best Regards.
> Hi Ingmar,
>
>>
>> Just FYI, there's a bugreport about FlexForms and UTF-8:
>> http://bugs.typo3.org/view.php?id=1273
> Yeah I know this but I think that is another problem...
>
>
> Greets,
> Thomas
>
>
> --
> typo3-unleashed.net
More information about the TYPO3-dev
mailing list