Jump to content

Cleanup Super globals


cobusbo

Recommended Posts

Hi I'm currently experiencing problems with my super global outputs.

 

I'm using

 

 

$_SERVER['HTTP_X_MXIT_NICK'];
 

to retrieve info but in the place of a space it gets replaced with a +

 

 

Galaxy+Universe+Admin

I've also tried using special characters like this in my name

ᄃӨBЦƧBӨ {~KΛMΛKΛZI~}

 

But the output is

 

%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?

Link to comment
https://forums.phpfreaks.com/topic/294079-cleanup-super-globals/
Share on other sites

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.

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.