I have a unicode url: \test.php?sText=Московский
I would like to use the $_Get function to work with the value of sText. The code I have for test.php is:
<?php
$sVar = $_GET['sText'];
echo "Variable = $sVar";
?>
Problem is that the above is coming bach as: Variable = ??????????
What do I need to do?
This works fine for me:
$sVar = $_GET['sText'];
echo urldecode($sVar);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With