htaccess UTF-8 encoding for .html, .css, .js - Whats the best way?

前端 未结 1 1639
一向
一向 2020-12-16 11:44

For yslow page speed I want to remove my meta tag and put my encoding into the .htaccess file. Below are all the ways to do it I have read about. Which is the preferred way?

相关标签:
1条回答
  • 2020-12-16 12:04

    I think

    AddDefaultCharset utf-8
    

    is enough for all.

    Maybe better way is set encoding to files, which are using different charset than default.

    0 讨论(0)
提交回复
热议问题