From cf7a1be39ad7fb35076aaee85b969bd858f9f495 Mon Sep 17 00:00:00 2001 From: Andreas Perstinger Date: Mon, 2 Mar 2020 10:21:19 +0100 Subject: [PATCH] Add charset declaration at the beginning of layout.css layout.css contains Unicode characters so we need to declare the encoding of that file to ensure that all clients will interpret these characters correctly. --- config/asset_compress.ini | 3 ++- webroot/css/charset.css | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 webroot/css/charset.css diff --git a/config/asset_compress.ini b/config/asset_compress.ini index d8a8262305..948a3ce13f 100644 --- a/config/asset_compress.ini +++ b/config/asset_compress.ini @@ -19,6 +19,7 @@ cachePath = WEBROOT/cache_css/ filters[] = CssMinFilter [layout.css] +files[] = charset.css files[] = angular-material.min.css files[] = layouts/default.css files[] = layouts/elements.css @@ -53,4 +54,4 @@ files[] = links.add_and_delete.js files[] = reviews.add_remove.js [sentence-component.js] -files[] = directives/sentence-and-translations.dir.js \ No newline at end of file +files[] = directives/sentence-and-translations.dir.js diff --git a/webroot/css/charset.css b/webroot/css/charset.css new file mode 100644 index 0000000000..e63c05cc5b --- /dev/null +++ b/webroot/css/charset.css @@ -0,0 +1 @@ +@charset "utf-8";