$_session Why IE save Chinese characters garbled, ff,chrome but all normal
A few days ago sent a post for help, no fruit, (the problem is IE film can not be displayed, FF and chrome under normal)
Try the echo $_session["Goodsid" yourself,
Found
FF display session for [email protected]@ yuan 004@ kanji display Normal,
[Email protected]@?004@, the Chinese characters in front of the numbers show up as a box.]
There must be a problem with the characters stored in the session,
My files are saved in the Utf-8 format,
Session file is
PHP Code
Session_Start (); header ("content-type:text/html; Charset=utf-8 "), if ($_session[" Goodsid "]==" ") { $_session[" Goodsid "]=$_get[" id "]." @";} else{ $array =explode ("@", $_session["Goodsid"]); if (In_array ($_get["id"], $array)) { $key =array_search ($_get["id"], $array); $array [$key]= ""; $_session["Goodsid"]=implode ("@", $array); } else{ $_session["Goodsid"].=$_get["id"]. " @"; }}
Excuse me, what's wrong with me???
------Solution--------------------
Do you set the browser encoding format instead of the auto-selection?