no command in htaccess works to set charset


helenp

Recommended Posts

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

Link to comment
Share on other sites

  • 1 month later...

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

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...