Setting character encoding with htaccess

Apache set character encoding

Question mark boxes that appear when the incorrect character encoding is set the browser cannot display the charactersCharacter encodings tell the browser how to display a document. Usually these are set through our headers instruction set and can be done in the header tag of our HTML 5 documents.

A great backup to this system is to use a default encoding in our htaccess file. This ensures that if the character encodings were not set correctly in our documents, our files will still display correctly:

### default char ### DefaultType text/html AddDefaultCharset utf-8

Add the above to your htaccess file to give your HTML 5 a default character encoding of utf-8.