I want to get the names of the files in a folder but at the time of showing them the accented letters appear with a question mark.
How can I make accented letters appear?
I leave the example code.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<?php
$directorio = opendir("2015");
while($archivo = readdir($directorio)){
if(is_dir($archivo)){
echo "[".$archivo."]<br/>";
}
else{
echo $archivo."<br/>";
}
}
?>
</body>
</html>