cobusbo Posted January 20, 2015 Share Posted January 20, 2015 Hi I'm currently experiencing problems with my super global outputs. I'm using Quote $_SERVER['HTTP_X_MXIT_NICK']; to retrieve info but in the place of a space it gets replaced with a + Quote Galaxy+Universe+Admin I've also tried using special characters like this in my name Quote ᄃӨBЦƧBӨ {~KΛMΛKΛZI~} But the output is Quote %E1%84%83%D3%A8B%D0%A6%C6%A7B%D3%A8+%7B~K%CE%9BM%CE%9BK%CE%9BZI~%7D Is there maybe a way to clean it up to show as normal text in Sentence case? Quote Link to comment https://forums.phpfreaks.com/topic/294079-cleanup-super-globals/ Share on other sites More sharing options...
Solution Barand Posted January 20, 2015 Solution Share Posted January 20, 2015 echo urldecode("Galaxy+Universe+Admin"); #--> Galaxy Universe Admin Quote Link to comment https://forums.phpfreaks.com/topic/294079-cleanup-super-globals/#findComment-1503501 Share on other sites More sharing options...
cobusbo Posted January 20, 2015 Author Share Posted January 20, 2015 On 1/20/2015 at 12:04 PM, Barand said: echo urldecode("Galaxy+Universe+Admin"); #--> Galaxy Universe Admin Thank you it helped removing the + signs and by adding <html> <head> <meta charset="utf-8"><!-- Your HTML file can still use UTF-8--> </head> <body> <?php header('Content-Type: text/html; charset=ISO-8859-1'); helped with the special characters. Quote Link to comment https://forums.phpfreaks.com/topic/294079-cleanup-super-globals/#findComment-1503511 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.