How to add the default charset to UTF-8 in .htaccess

October 26, 2018

If you want to define the default charset to UTF-8, you can do this in one line in .htaccess

AddDefaultCharset UTF-8