Unexpected characters in output
I am getting some weird characters in the output from my script. It is a light CMS that enters content in the database. When I output from the database, I get characters like Â right after all periods.
What causes this? My database collation is latin1_swedish_ci and my template document sets the page as UTF8 ( browser is also showing UTF8 ).
Is this an encoding issue? I thought for a second maybe I should change the collation to UTF8, but there's so many choices in the database for that. Then I checked out UTF8_encode PHP function, but wasn't sure if I should all data entered into the database through this.
Sounds like it to me, the data within the DB wont be utf therefore its not going to make a difference if you send 'utf8' headers.
You will have to change the DB encoding, a small article i found on the matter (assuming you use mysql)
Thanks, this seemed to solve the problem. Figured this was what was causing it.
|All times are GMT. The time now is 09:11 PM.|
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0