helenp Posted March 11, 2012 Report Share Posted March 11, 2012 Hi, I am preparing my site for mobiles etc, and keep checking the tests and headers, and one thing I should do is to add charset utf-8 to the http header. In this link to askapache.com there are several ways to add utf-8 as charset to the htaccess http://www.askapache.com/htaccess/setting-charset-in-htaccess.html And in the header I should get this when checking a .css file: Content-Type: text/css; charset=UTF-8 However adding any of them in the link to my htaccessfile I get this as result in the header: Content-Type text/css Anybody have an idea why it does not work in htaccess. The php files I fixed without htaccess adding a php header with the charset on every page. Thanks in advance Quote Link to comment Share on other sites More sharing options...
joris121 Posted April 22, 2012 Report Share Posted April 22, 2012 Hi, I use the following: AddDefaultCharset UTF-8 works on all filetypes for me. headers return text/css; charset=UTF-8 If this doesn't help you could try posting your full htaccess file here. Quote Link to comment Share on other sites More sharing options...
Brian Posted April 25, 2012 Report Share Posted April 25, 2012 I'm not sure if you've sorted this out yet or not but in the event you haven't I believe there was (is) a bug with the latest version of the webserver software we're using that causes issues along these lines. Please contact our helpdesk team (htttps://support.hawkhost.com) with this issue and we can let you know for sure what is going on here Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.