str_replace('Ê','',$line);
Ain't working. Is there some special string that represents that?
str_replace('Ê','',$line);
Ain't working. Is there some special string that represents that?
You need to consider the encoding of the string you want to manipulate. If that’s not encoded with the same character encoding as the file you declared that string above in is, you need to convert between both encodings.
The most common error is that either the data or the file is encoded in UTF-8 and the other in ISO 8859-1.