Forum Moderators: phranque
AddCharset iso-8859-1 .php
How do I check the header of a file?
Is this the correct syntax for the htaccess file?
Does this have to specifically be at the top of the file or can it be placed anywhere in general?
[added] AddCharset documentation [httpd.apache.org] (Note charset specifications are in all-uppercase letters in the examples, but I doubt it would matter). [/added]
Jim
Having said all that, you could try a few variations. If your entire site uses the same charset, you can set ISO-8859-1 as the default for everything:
AddDefaultCharset ISO-8859-1 This adds the charset header to absolutely everything, though - including script, CSS and image files.
Your second option (and what I usually end up doing) is to declare the charset with PHP (as you are already using it):
<?php header('Content-Type: text/html; charset=ISO-8859-1');?> Although this shouldn't make any difference at all, the W3C validator doesn't usually have a problem when the charset is declared this way.