add charset to http header using htaccess
Hi I been trying to add charset= utf-8 using htaccess.
It works on my php files and if I add AddDefaultCharset UTF-8 that I read is supported by Litespeed I get for the php files this http header:
Content-Type => text/html; charset=UTF-8
However it does not work on .css or .js files, I get this as header only:
Content-Type => text/css
I spoked to the host and he think its due to the gzipping of the files, but also the static content in the php files is being gzipped.
Should this work on .css files or can it be done in another way?
I am preparing my web for mobile devices and an error I get from w3s mobile checker is that my .css file does not have charset utf-8 in the http header, so I would like this fixed.
Thanks in advance
Last edited by helenp; 03-14-2012 at 12:19 AM..
Reason: Was cut