Snap Builder Public Codes Library
Snap | Generators | Login | Browse | Search | Enter Code | Export Snap Builder Public Codes Library

 

Category: >> .HTACCESS Codes Library >> Automatically add utf-8 charset to files


Code Snippet </> Info


Snippet Name: Automatically add utf-8 charset to files

Description: In order to avoid encoding problems, you can force a specific encoding directly on your .htaccess file. That way, you will ensure that your HTML documents will always render correctly, even if you forget to add a directive in your HTML pages.

Note:

Author:

Last Modified: 2015-03-26 23:20:36

Language: .htaccess

Highlight Mode: html

Copy Codes: Use Free Notepad ++
Bookmark and Share

Snap HTML Code Editor:
Paste the source code, make changes and instantly see it in live preview.
Snap HTML Code Editor


  About Copying

#Begin Auto UTF-8 Charset <FilesMatch "\.(htm|html|css|js)$"> AddDefaultCharset UTF-8 </FilesMatch> # // --> End


[ Snippet Options ]

 

© 2002 -  Snap Builder Public Codes Library