Sunucusuna bir http-get isteği yaparken ben hala anlamıyorum şeydir what the advantage is in using JS function encodeURIcomponent to encode each component of the http-get.
Doing some tests I saw the server (using PHP) gets the values of the http-get request properly also if I don't use encodeURIcomponent! Obviously I still need to encode at client level the special character & ? = / : otherwise an http-get value like this "peace&love=virtue" would be considered as new key value pair of the http-get request instead of a one single value. But why does encodeURIcompenent encodes also many other characters like 'è' for example which is translated into %C3%A8 that must be decoded on a PHP server using the utf8_decode function.
EncodeURIComponent kullanarak http-get istek tüm değerleri PHP bunları alırken nedenle ben quite annoying her $ _GET değerin üzerinde her utf8_decode işlevini çağırmak zorunda kodlanmış utf8 vardır.
Why can't we just encode only the & ? = / : characters?
see also: JS encodeURIComponent result different from the one created by FORM It shows that encodeURIComponent does not even encode properly because a simple browser FORM GET encodes characters like '€', in different way. So I still wonder what does this encodeURIComponent is for?