.htaccess Set Charset for specific Media Types
.htaccess Set Charset for specific Media Types
In .htaccess, you can specify the character set to be used for certain types of files.
For example, you can serve the following file types with the charset
parameter set to UTF-8
using the AddCharset directive available in mod_mime
.
<IfModule mod_mime.c>
AddCharset utf-8 .appcache \
.bbaw \
.css \
.htc \
.ics \
.js \
.json \
.manifest \
.map \
.markdown \
.md \
.mjs \
.topojson \
.vtt \
.vcard \
.vcf \
.webmanifest \
.xloc
</IfModule>