Unwanted Characters in XML handling in php

, ,

So I ran into an issue where there was unwanted characters where spaces where suppose to be or nothing at all.  Here is a sample of those characters.

Â
â€
“

Here is the fix that I implemented and it cleaned up the code right away.

echo "<META http-equiv='Content-Type' content='text/html; charset=UTF-8'>";

 

Skills

Posted on

October 20, 2015

Submit a Comment

Your email address will not be published.