Here's the code:
$content = file($_FILES['tmp_name']); // This is a TXT file uploaded
echo json_encode($content);
When the tmp_name
file content is cancao
I got ["cancao"]
but if the tmp_name
file content is canção
I got null
.
Here's the code:
$content = file($_FILES['tmp_name']); // This is a TXT file uploaded
echo json_encode($content);
When the tmp_name
file content is cancao
I got ["cancao"]
but if the tmp_name
file content is canção
I got null
.