Here is the scenario:
An SQL query is performed and a result is returned. In this result, there is a column which contains text that has single quotes, double quotes, and hyphens (-). None of these characters display properly when echo’ed (show up as weird symbols).
I have tried numerous PHP functions, such as htmlentities, html_entity_decode, and htmlspecialchars_decode. I have tried these functions with parameters ENT_QUOTES and ‘UTF-8’, still no luck. Not sure what else I could try to solve this issue, which appears to be dealing with encoding.
Any input would be appreciated.