There is a text UTF-8, it has a number of characters of the form
$bad_symbols = array('â', 'â','â','â'); "In life" on the site, these characters look like single or double quotes, dashes.
This is a popular topic, googled and found the answer https://stackoverflow.com/questions/2477452/%C3%A2%E2%82%AC-showing-on-page-instead-of , but I don’t understand how participants use tables like this, define the original encoding https://www.charset.org/utf-8 (what is the mechanics of action?)
I tried to transcode these characters, got them in the form (what a view, by the way?)
â = â
’ = â € ™
but what should I do with this next? How to understand the original encoding? And how to get rid of it, lead to a normal look? If it is impossible to bring to a normal mind, then at least how to determine all the lines with such characters, maybe there is some kind of hook? I now solve it manually, I find all such symbols and str_replace is a hellish crutch.
Also tried all possible options ICONV
$z = 'Itâs a pity to cut beautiful curly hair. If itâs'; iconv('CP-1252','UTF-8',$z); iconv('windows-1252','UTF-8',$z); iconv('ISO-8859-1','UTF-8',$z); iconv('UTF-8','ISO-8859-1',$z); iconv('UTF-8','CP-1252',$z); iconv('UTF-8','windows-1252',$z); The result is always False, and nothing changes!
