Hi how to format a string from unwanted characters in php? Tried strip_tags, mysqli_real_escape_string, but no success.
This is the scenario. The string is entered through an android app it allows rich text inputs, below is the image
When added the db entry looks normal, below is the image
Now at last the string is read from a url, below is the image
As you can see there's  character between the bold text, but it's not appearing in the db entry on second image. Actually this string is read by a gsm module and it's causing the system to break due to the  character.
strip_tags returns the same string, whereas mysqli_real_escape_string returns empty string.
How to clean such strings from unwanted characters(not just Â) in php to return only the plain text?