I'm having directory localization problem when it involves a file or folder with accent. Here's the snippet below where I try to capture the size of the file:
$filepath = "$novocaminho".utf8_encode($arquivo);
$tamanho = filesize("$filepath");
In this case it is returning the following error: Warning: filesize (): stat failed for
In other case, where I check if it is a directory, when the directory is not accented, if
returns true
if it is a directory with accentuation it returns false
.
if(is_dir(utf8_encode($novocaminho_implode)) == TRUE){
The past directories are of type string
.
I've tried using utf8_encode ().