1
I have a directory location problem when it involves an accentuated file or folder. Follow the section below where I try to capture the file size:
$filepath = "$novocaminho".utf8_encode($arquivo);
$tamanho = filesize("$filepath");
In this case it is returning the following error: Warning: filesize(): stat failed for
In another case, where I check if it is a directory, when the directory is without accentuation, the if
returns true
if it is an accentuated directory it returns false
.
if(is_dir(utf8_encode($novocaminho_implode)) == TRUE){
Past directories are of the type string
.
I have tried using utf8_encode().
utf8_encode() may not be the best option
– Renato Junior