PHP unknown encoding with accents

Viewed 337

im having really troubles with some folders/files reading with php.

I do a scandir o a folder and a specific file inside have a name with these word: "BAILÉN". When i do a "echo" it shows "BAILE´N". The big problem is php dont recognize the file. The functions is_file, is_dir, file_exist, rename, scandir... fails.

I tried utf8_encode, decode, iconv with a lot of charsets and nothing work.

This is a file with the name:

https://mega.nz/#!w34XXa7Z!89NYKRBXkx3u-uaSYZd_E2LijDdzIf3trIUu8UrHE18

PHP Version 5.6.12

Thank you very much (sorry if my english is not good)


edit:

If anyone was interested.

One of my partner developed a small C# app to replace problematic chars (C# function recognize the files)

i was able to replace the problematic char with hex2bin and bin2hex. But no matter what i did none of the php function recognize de file.

I think php function have problems with that characters and theres nothing i can do.

1 Answers
Related