lundi 2 mars 2015

Why is my PHP urlencode not functioning as examples on internet?

Why does my urlencode() produce something different than I expected?


This might be my expectations being wrong but then I would be even more puzzled.


example



urlencode("ä");

expectations = returns %C3%A4

reality = returns %E4


Where have I gone wrong in my expections? It seems to be linked to encoding. But I'm not very familiar in what I should do/use.


Should I change something on my server to that the function uses the right encoding?





Aucun commentaire:

Enregistrer un commentaire