nathandemick.com

Web dev tips

For a while, whenever I’ve come across a weird web problem, then find a solution, I’ve had this desire to post about it here. Even though no one who reads this would care about web stuff in the slightest. Anyway, I don’t care!

On one of my sites, IE was returning blank pages whenever links were clicked on. Refreshing the page would result in the correct page being displayed… it was bizarre. I figured that the problem had to be something PHP- or session-related, but it turned out that the page content/type wasn’t being defined the way IE likes it. I found this forum post that tells of another guy having the same problem, and his solution. Word up! Just define the character set by using this header command:

header("Content-Type: text/html; charset=UTF-8");

It works now; lame problem, fast enough solution.

· 0 comments


Comments