Project

General

Profile

Actions

Bug #20671

closed

xml2array identifies UTF-8 files with BOM as ISO-8859-1

Added by Lucas almost 15 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2009-06-25
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.3
PHP Version:
4.3
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

When parsing an XML file with xml2array, it will identify the file as ISO-8859-1 if you try to load a real UTF-8 file with Byte-Order-Mark at the beginning. This is caused by the regular expression, which will not match if there are other characters than spaces before the XML header.

I found the bug in Typo3 v4.2.5, but it is also present in the current v4.3-.0-alpha3.

I attached a patch for class.t3lib_div.php which fixes the bug, although I'm not sure if there are any other locations this needs to be fixed.

(issue imported from #M11411)


Files

class.t3lib_div.php.patch (1.23 KB) class.t3lib_div.php.patch Steffen Gebert, 2011-12-26 13:28

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #32834: Remove BOM in getUrl()Closed2011-12-26

Actions
Actions #1

Updated by Steffen Gebert over 12 years ago

  • File deleted (class.t3lib_div.php.patch)
Actions #2

Updated by Steffen Gebert over 12 years ago

Actions #3

Updated by Alexander Opitz over 9 years ago

  • Status changed from New to Needs Feedback
  • Is Regression set to No

Hi,

does the problem still exists within newer versions of TYPO3 CMS (6.2.9)?

Actions #4

Updated by Alexander Opitz almost 9 years ago

  • Status changed from Needs Feedback to Closed

No feedback within the last 90 days => closing this issue.

If you think that this is the wrong decision or experience this issue again, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.

Actions

Also available in: Atom PDF