How to change the default encoding to UTF-8 for Apache?
In httpd.conf add (or change if it's already there):
AddDefaultCharset utf-8
Add this to your .htaccess
:
IndexOptions +Charset=UTF-8
Or, if you have administrator rights, you could set it globally by editing httpd.conf
and adding:
AddDefaultCharset UTF-8
(You can use AddDefaultCharset
in .htaccess
too, but it won’t affect Apache-generated directory listings that way.)