Answer the question
In order to leave comments, you need to log in
How to get urlencode() encoded string via json?
Hello.
After receiving the
json response, you need to insert the received variable into the string and make location on this string.
(Cyrillic).
$jsonarr = array('usname' => urlencode($login));
echo json_encode($jsonarr);
window.location.replace("http://site.ru/u/"+data.usname+"/")
Answer the question
In order to leave comments, you need to log in
Native.
This is not a circle of high literature.
A site about programming.
You just have to show it.
The problem here may be only in your program. Insofar as
Just like any other. Of course , there is no difference.
decodeURIComponent() won't save the literary and polite programmer?)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question