Download & Extend

Change CSS file encoding

Project:CSS Injector
Version:6.x-1.4
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

CSS files created by CSS Injector should be encoded in the same encoding as Drupal nodes.

Some old browsers like IE6 assume encoding of CSS files be the same as the webpage character set. That is, if Drupal nodes are configurated as UTF-8 encoding, the CSS file must be in UTF-8. If their encodings are not the same, IE6 will ignore the CSS files. Currently, CSS files created by CSS Injector are encoded in ANSI.

Comments

#1

It's not nodes that are encoded, but pages.

Since the encoding is typically stated in page.tpl.php, I'm confused how css_injector is going to know how to change its encoding.

css_injector just uses drupal_add_css(), which has no encoding options. How is CSS Injector's approach different from all other CSS files added with drupal_add_css()?