More fun with iWeb
 
This happens on both Firefox and Safari, so I think it’s an iWeb thing... the html code specifies UTF-8 character encoding, but the pages render in Western.  There’s no way to change the encoding in iWeb.  Both browsers render correctly when UTF-8 is manually selected, and Safari does OK if UTF-8 is chosen as the default, but Firefox insists on initially rendering the page using Western encoding no matter what I do.  One would think that the browsers would respect the encoding specified in the html doc, no?
 
Addendum: it was Apache defaulting to non-UTF in the HTML headers... I fixed it on the server (briefly, see below), by using .htaccess files like so:
 
<Files *.html>
ForceType text/html;charset=UTF-8
</Files>
 
BUT: iWeb *overwrites* the entire folder when it publishes... so the .htaccess files go away, too. Hmmm.
 
Final (working) fix: in httpd.conf, put “AddDefaultCharset utf-8” in the VirtualDirectory for this site.
Friday, July 7, 2006