How to change apache2 default charset in Ubuntu | Ubuntu Geek
If you want to change the apache2 default charset in Ubuntu try this procedure
You need to edit this file /etc/apache2/conf.d/charset
sudo gedit /etc/apache2/conf.d/charset
next you should change the line
#AddDefaultCharset ISO-8859-1
to
AddDefaultCharset {YOUR_DEFAULT_CHARSET | Example: UTF-8}
save and exit the file
Now you need to restart the apache server using the following command
sudo /etc/init.d/apache2 restart