Did you try this on multiple browsers (IE, Firefox, Chrome, Safari) and get the same result?
Did you try this on another computer (or different operating system on a dual boot?)
Did you paste contents to the php files? IOW are you sure your single quote is a single quote? Have you manually typed it in?
Are the contents coming from a database? (Unicode)
Not sure exactly what's wrong but those are all questions or debugging that I'd try.
Good luck!