David Nelson Posted July 31, 2009 Share Posted July 31, 2009 Hi, I have a PHP page where I'm passing in $_GET variables such as the following: page.php?st=NX-Zero---Cartas-pra-Voc%EAasd-%5BAG... %EA represents the "ê" character. So long %EA is there, my variable is inaccessible through PHP. In page.php I simply have "echo $_GET['st']" If I remove %EA then it works. "%5B" is also present in the URL, which represents the "[" character, and it causes no problems. What do you think the issue may be here? Thanks, David Link to comment https://forums.phpfreaks.com/topic/168220-_get-with-urlencoded-characters-not-accessible/ Share on other sites More sharing options...
dadamssg Posted July 31, 2009 Share Posted July 31, 2009 <?php $whatever = urldecode($_GET['st']); echo $whatever; ?> Link to comment https://forums.phpfreaks.com/topic/168220-_get-with-urlencoded-characters-not-accessible/#findComment-887380 Share on other sites More sharing options...
David Nelson Posted July 31, 2009 Author Share Posted July 31, 2009 Thanks for the reply, but I wasn't asking how to decode it. I simply can't do anything with the variable so long as it has those characters in it. I can't echo it as it is, or after doing an URLDecode on it. Link to comment https://forums.phpfreaks.com/topic/168220-_get-with-urlencoded-characters-not-accessible/#findComment-887388 Share on other sites More sharing options...
Prismatic Posted July 31, 2009 Share Posted July 31, 2009 $str = base64_encode(urlencode('Whatever')); Link to comment https://forums.phpfreaks.com/topic/168220-_get-with-urlencoded-characters-not-accessible/#findComment-887406 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.