abdfahim Posted September 14, 2010 Share Posted September 14, 2010 Hi, I am using the following code to send chinese characters via GET variable $x = $transarr['Area']; // This contains chinese character read from a utf-8 text file header("location: ++a.php?ab=$x"); in ++a.php file, the following code returns correct chinese characters in Mozilla Firefox, but in Internet Explorer, it shows "???". Anybody has any idea, please? echo $_GET['ab'] Quote Link to comment https://forums.phpfreaks.com/topic/213378-php-send-get-variable-in-chinese/ Share on other sites More sharing options...
Dead6re Posted September 14, 2010 Share Posted September 14, 2010 This is most likely due to the encoding of the browser, you will need to tell PHP to send the header with character encoding UTF-8. header('Content-Type: text/html; charset=utf-8'); Quote Link to comment https://forums.phpfreaks.com/topic/213378-php-send-get-variable-in-chinese/#findComment-1110967 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.