Hey Guys, I have a string with special characters that need to be passed via getJSON
Basically, the 'password' variable has special characters in it. But I have other functions that may have special characters, so I need to know a best practice on how to deal with it.
What's the best way to encode that?
Code:
$.getJSON("https://me.com/login.cfc?method=login&email=" + email + "&password=" + password,function(result){});
Basically, the 'password' variable has special characters in it. But I have other functions that may have special characters, so I need to know a best practice on how to deal with it.
What's the best way to encode that?