How do I read a unicode url with PHP?
问题 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? 回答1: You need to return a UTF-8 content-type header with your test.php header('content-type: text/html; charset=utf-8'); You need to save you test.php UTF-8 encoded (not sure about this, but wont