In my page, I try to open some xml files:
$xml = simplexml_load_file("users/" .$f->name."/data.xml");
The problem is that $f->name
can include characters as vowels with accents, and because of that there´s an error when opening the file. For example, instead of García, it reads GarcÃa. How can I solve it? (I´ve already tried with utf8_encode($f->name)
)