I have a small problem…
if I use the php function to convert a utf8 string like André the php function url encode(‘André’) returns Andr%C3%A9.
but if I have a look at the w3school ref table, the proper urlencode for é is %E9…
see here: http://www.w3schools.com/tags/ref_urlencode.asp
How can I get the proper url encoded string in php?
The difference is that the encoded reference value on w3schools is in iso-8859-1 encoding, while your version is encoded using utf-8. The example given by vvr02 won’t matter, as the encoding presented in the HTML document won’t affect the encoding used when saving the file.
Your version, where the file is saved in UTF-8-format, returns the utf-8 representation of é, while vvr02’s version which is saved in iso-8859-1 (or similar) returns the iso-8859-1 representation of é.
They’re both correct depending on the context.