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

Martin Kutschker Martin.Kutschker at n0spam-blackbox.net
Tue Nov 7 16:53:51 CET 2006


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.

Afterthought: if we find no encoding in <?xml ?> we should also set UTF8 as 
  UTF8 is the default encoding for XML.

Masi



More information about the TYPO3-team-core mailing list