again, I'm having encoding problems when trying to pin files in a PHP application.
Here is the deal, whenever the file name contains special characters, that is: "eñeìá.html", I cannot pin it correctly .. the result of fastening it with the php AddFile function is "e + | e + ¼ + í. html
The problem line is as follows:
$ zip-> addFile ($ file_to_add_path, $ file_to_add-> getFilename ());
I already tried using iconv, utf8_decode / encode, etc., but so far no luck. The closer I got, the higher the example when using htmlentities, and then decrypted them.
I run the application in Xampp on Win XP .. This may be the root of the problem.
It's funny when I unzip a file with the name specified earlier in the application, its name is fine, however, when I download a zip file and open it ... bleh ..
In any case, thanks in advance to everyone who could help me or help me a little with this. If you need more information, please ask me about it.
Regards
source
share