Wordpress 1.5 Content-Type Bug
February 19th 2005
You may have noticed that this site has been flashing a little lately. I just realized this tonight, and I finally found out the problem was in the character endoding — it wasn’t being sent to the browser in the HTTP headers. Wordpress is supposed to take care of this, but I was compensating by using a meta http-equiv tag, which, when loaded, made the page flash. Annoyed the heck out of me.
It’s an easy fix if this is happening to you. Ideally you don’t want to change the code, but until they fix it this hack will work: go to line 118 in the file wp-blog-header.php and change it to read:
@header('Content-type: text/html; charset=utf-8');
Of course, replace utf-8 with your preferred character set, even though that one is probably best. Et voila, no more flashing, and a nice and legal content-type.








[...] as not working for IE. Tracked it down to a problem with Wordpress, and a quick fix for it here.
No Comments so far
[...]