$_session Why IE save Chinese characters garbled, ff,chrome but all normal

Source: Internet
Author: User
$_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?
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.