I had a problem when PHP (5.2) cannot find the βΓβ character in the string, although it is clearly there.
I understand that the main problem is with character encoding, but unfortunately I canβt control the original content. I get it as UTF-8, with these characters already in the string.
I just wanted to remove it from the string. strpos (), str_replace (), preg_replace (), trim (), etc. It is not possible to identify it correctly.
My line is this:
"Γ Γ Γ A lot of couples throughout the World "
If I do this:
$string = str_replace('Γ','',$string);
I get this:
"Γ Γ Γ A lot of couples throughout the World"
I even tried utf8_encode () and utf8_decode () before str_replace, no luck.
What's the solution? I drop everything I can find in it ...
source share