Jump to content

encode decode


robert_gsfame

Recommended Posts

i have this in my html code

onclick="test('$test1')"

 

just let say $test1 ==>simple media@#$%^& has been encoded using urlencode so that i will have this Simple+Media%40%21%24%25%5E%26%2A%

 

function test(x){

var test=unescape(x)

alert('test')

}

 

using unescape will still leave the + sign, and when i use replace to change the sign with space, how come i still find the + sign???

Link to comment
https://forums.phpfreaks.com/topic/199248-encode-decode/#findComment-1045760
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.