It's complicated. It depends on what encoding your file system uses for file names, and how (if) your web server or PHP functions convert the encoding.
First of all, make sure your links never use unencrypted non-ASCII characters. URLs must be in UTF-8, i.e. must be encoded as% C3% A9. If this does not work, try% E9 (é in ISO-8859-1).
You may find a function iconv()useful for converting encodings. rawurlencode()is a must.
source
share