- Instant help with your Developer coding problems

Set default encoding to UTF-8 using Apache

How to set default encoding to UTF-8 using Apache?
AddDefaultCharset utf-8

The AddDefaultCharset directive specifies 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 . This should override any charset specified in the body of the response via a META element, though the exact behavior is often dependent on the user's client configuration.

The AddDefaultCharset should only be used when all of the text resources to which it applies are known to be in that character encoding and it is too inconvenient to label their charset individually. 

Share "How to set default encoding to UTF-8 using Apache?"