Project

General

Profile

Actions

Feature #72648

closed

Automatically remove BOM in css files before concatenation

Added by Christian Futterlieb almost 9 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2016-01-12
Due date:
% Done:

100%

Estimated time:
PHP Version:
Tags:
Complexity:
easy
Sprint Focus:

Description

When css files contain a BOM (https://en.wikipedia.org/wiki/Byte_order_mark), it must be removed. Because when the BOM does not occur on the beginning of a file, it will be interpreted as a normal character, which will make the following css rule invalid.

There is a corresponding warning in the documentation (https://wiki.typo3.org/UTF-8_support#File_system), but the subsequent problems (when a css file contains a BOM) are tricky to track down and even trickier to fix. Because of this I think people will stick with excludeFromConcatenation, or - even worse - with config.concatenateCss = 0

I'll commit a possible solution to gerrit in a moment.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #72734: Fix messed up backport usage of StringUtilityClosedAnja Leichsenring2016-01-15

Actions
Actions

Also available in: Atom PDF