Recently I made a change attempting to make all my pages Valid XHTML 1.0 Transitional and one of the problems I was facing was that strings I read off of Yahoo! or Apple aren’t always correctly encoded. Therefore I had a simple hacked which called
html_entity_decode() followed by
htmlentities(), hoping to fix issues.
However, while browsing the pages today, I noticed the title was completely broken when it had special characters such as the apostrophe. Looking closer at the code, it appeared to default to the ISO-8859-1 character set, when what I really wanted was the UTF-8 character set.
Adding that parameter to the method appears to have fixed it. If you guys see anymore problems, please let me know.
Thanks in advance!