Possible Duplicate:
php javascript url encoding
if I encode a url with javascript's encodeURI(), will I be able to use PHP's url_decode to decode it without any possibility of error?
similar question for the other direction (encode with url_encode() in PHP, decode with javascript)