Bug #56483
closedINCLUDE_TYPOSCRIPT fails on files that begin with a BOM
100%
Description
Files need to be in UTF-8. But editors like "notepad" by default write a BOM and there is no easy way to see there are "hidden characters" in the beginning of the file.
In the typoscript-editor no problems are visible. But template-analyser complains about some special character in the first like of the file.
Imho INCLUDE_TYPOSCRIPT should handle a BOM gracefully (skipping the BOM when reading - maybe on save just saving the file without any BOM as it does now).
Files
Updated by Riccardo De Contardi over 9 years ago
- TYPO3 Version changed from 6.1 to 6.2
Still present in TYPO3 6.2.12; this is the error shown in TSOB:
Errors and warnings 2: Line 2748: Object Name String, "page.5" contains invalid character "�". Must be alphanumeric or one of: "_:-\." Show details
Updated by Riccardo De Contardi about 9 years ago
the error is still present in 6.2.15 and 7.6-dev (latest master)
on 7.6 the explanation of the error is missing in TSOB: it merely says:
"
Errors and warnings
Show details
"
Updated by Riccardo De Contardi almost 8 years ago
Issue is still present on 8.6-dev (latest master); the error message in TSOB is still
Errors and warnings Warning : Show details
when I click on "show details" I am redirected to the Template Analyzer where the error is reported as on the attached screenshot
Updated by Andreas Kienast over 6 years ago
FYI: a BOM may be added by running vim -e -s -c ':set bomb' -c ':wq' foo.typoscript
in a terminal
Updated by Gerrit Code Review over 6 years ago
- Status changed from New to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/57315
Updated by Gerrit Code Review over 6 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/57315
Updated by Gerrit Code Review over 6 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/57315
Updated by Gerrit Code Review over 6 years ago
Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/57315
Updated by Andreas Fernandez over 6 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 73ffa61fc9974a14d44901cce801b7fffcd0f7b6.
Updated by Gerrit Code Review over 6 years ago
- Status changed from Resolved to Under Review
Patch set 1 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/57327
Updated by Gerrit Code Review over 6 years ago
Patch set 2 for branch TYPO3_8-7 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/57327
Updated by Andreas Fernandez over 6 years ago
- Status changed from Under Review to Resolved
Applied in changeset 92ee4e4f4e34a06b0650439358991e0f3e526407.