How can I force a particular charset? (Character Encoding)

You are able to set a default value for the media type charset parameter (the name of a character encoding) to be added to a response if and only if the response's content-type is either text/plain or text/html

To do this, simply create a file named ".htaccess" within your webspace, and add the following line: 

AddDefaultCharset <charset> 

A setting of "AddDefaultCharset Off" disables this functionality. Usually, this will mean the exact behavior is dependent on the user's client configuration.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Do you support SSI (Server Side Includes)?

Yes we do. SSI (Server Side Includes) are tags that are placed in HTML pages, and evaluated on...

How can I change the file name extension of my index page?

It is possible to name your default index page something other than index.html, index.cgi,...

How can I enable directory indexing

If you want to see a list of files in a directory when viewing it in a browser rather than a web...

How do I edit php.ini (PHP settings) for my hosting package?

Becuase of the way in which we run PHP, you are able to customise its behaviour with php.ini...

How do I enable gzip compression on my website

You can decrease load times on your website by compressing the contents. You can do this on...