With cURL, I am saving files which have UTF-8 chars in the filename.
For example:
testšć.docx
When I used mb_detect_encoding(), it returned ASCII.
So I tried to convert it with iconv from ASCII to UTF-8 and from UTF-8 to UTF-8.
Neither option worked.
So does anyone has a suggestion on how I could keep UTF-8 file names?
Cheers!
mb_detect_encoding. What are you callingmb_detect_encodingon exactly? Also note thatmb_detect_encodingis not really an exact science and you hardly need it if you know what encoding you're dealing with.