Forum Moderators: phranque

Message Too Old, No Replies

How to set UTF with .htaccess?

         

toplisek

11:16 am on Sep 26, 2012 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



How to set UTF with .htaccess? I have noticed example:
AddDefaultCharset utf-8

What will be consequences for this line as I have also
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> and all files are stored as UTF-8.

phranque

11:40 am on Sep 26, 2012 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



http://httpd.apache.org/docs/current/mod/core.html#adddefaultcharset
AddDefaultCharset should only be used when all of the text resources to which it applies are known to be in that character encoding and it is too inconvenient to label their charset individually.


in your case it is unnecessary.