A piece of PHP's Chinese character passing value in the address bar shows garbled characters in IE, and the Chinese character passing value turns into garbled characters, causing no data to be captured. But it can be used in Firefox. Pass value Page, mysql, query, receive value page, are UTF-8 font library this is what's going on? ------ Solution ------------------ set this parameter url_encode ($ name); then url_decode ($ _ GET [garbled text in the address bar of a PHP segment in Tclas
In IE, the last Chinese character is garbled, and the data cannot be captured.
But it can be used in Firefox.
Pass the value Page, mysql, query, receive the value page, are UTF-8 font
What is this?
------ Solution --------------------
Url_encode ($ name );
Next, url_decode ($ _ GET ['tclass']);
------ Solution --------------------
PHP code
// A. php "> aaaa // B. php $ T_class =$ _ GET ['tclass']; echo urldecode ($ T_class); // test ceiling
------ Solution --------------------
Echo"
";
------ Solution --------------------
1. expressions contained in quotation marks will not be parsed.
PHP code
Echo"
";