« archives

February 2005
S M T W T F S
« Jan   Mar »
 12345
6789101112
13141516171819
20212223242526
2728  

recently

news from around the web

» view all

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.


This entry was posted on Saturday, February 19th, 2005 at 3:24 am and is filed under Technical, Weblog. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.


One Response to “Wordpress 1.5 Content-Type Bug”



  1. Elwood.net Pingbacked at 11:03 am on June 2nd 2005

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

    No Comments so far

    [...]

Leave a Reply

Some XHTML allowed.