I am doing file () to a file and it returns between each letter of the document.
alfa.dic
Adão
Andy
Code:
$dictionary = file('alfa.dic', FILE_IGNORE_NEW_LINES);
var_dump:
string '�A�d�ã�o�' (length=9)
string '�A�n�d�y�' (length=9)
I thought it was a charset problem but even using utf8_encode()
this does not remove the characters.
How can I clean each line of these unknown characters?