0
When I name a php file with utf8 characters, for example 'çá.php' the local server does not open the file.
I really need names utf8 to name these files, but it is possible to do some kind of conversion. That is to take a name utf8, convert it to a file name that the server recognizes and save the file with the converted name. After that take the converted name and turn it into utf8 to use in the code. In other words, the process needs to be reversible.
What function or algorithm to perform this task?
Obs: I tried to use utf8_encode()/utf8_decode() but both generate filenames that the local server also does not recognize.
Catch
ççáá.php
and converting to ccaa.php is easy. See https://ideone.com/FMQ3DK but taking the converted name and turning it into utf8 is complicated. How to know if the name wasccáá.php
orççaa.php
orççáá.php
or .......– user60252
I had to remodel the system to delete the second need. Now I just need to convert in ccaa, the link you posted covers the need. Thank you.
– Gustavo Viana
Since you deleted the second need, I will post the link code as a response.
– user60252