[TYPO3-core] RFC: problem with php4 and xml data with byte order mark

Martin Kutschker Martin.Kutschker at n0spam-blackbox.net
Tue Nov 14 12:24:33 CET 2006


REMINDER

Martin Kutschker schrieb:
> Hi!
> 
> This is a SVN patch request.
> 
> Problem:
> PHP4 doesn't like a Unicode byte order mark at the beginning of XML 
> files in UTF-8. If a BOM is present the parsed data is no in UTF8 any 
> more. A BOM is valid at the beginning of an XML file. Ususally it's 
> added by text editors on Windows.
> 
> Solution:
> Look for the BOM and set the charset to UTF8 if a UTF8 BOM is found.



More information about the TYPO3-team-core mailing list