I have a website that pulls info from a database. In the database, the data (which is user-entered) is often entered as curly quotes or long dashes. The result is, the database holds them as â€ or other similar gobbledy-gook.
When PHP displays this data on the web page, it still looks like funny characters. So, on the web page, something like "Farmer's Market" will instead appear as "Farmerâ€™s Market".
This site was recently converted from ASP to PHP, and it was working fine in ASP, displaying everything properly, I believe using a particular function to convert the characters.
It seems that there should be a simple built-in function to do this in PHP, but I can't seem to find the right one on PHP.net.
Any help is appreciated.