Created
September 16, 2023 01:31
-
-
Save hachesilva/2e5bc5091db1557770dfb58b34050705 to your computer and use it in GitHub Desktop.
Automatically serve files with UTF-8 encoding on Apache server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Source: https://nicolasbouliane.com/blog/force-apache-serve-utf-8-default-htaccess | |
# Serve all text files as unicode | |
AddDefaultCharset utf-8 | |
# Set encoding on individual file types | |
AddCharset utf-8 .html .css .js .php |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment