#48477 [Opn]: Session always store content in UTF-8
ID: 48477
User updated by: dayseye at 21cn dot com
Reported By: dayseye at 21cn dot com
Status: Open
Bug Type: Session related
Operating System: Win32
-PHP Version: 5.3.0RC2
+PHP Version: 5.3.0RC3-dev
New Comment:
5.3.0RC2 is OK, RC3-dev cause the problem.
Previous Comments:
------------------------------------------------------------------------
[2009-06-05 09:50:30] dayseye at 21cn dot com
Description:
------------
I write some code in charset "GBK" and use session to store some text.
When I get the $_SESSION data, found it's UTF-8, which behave different
from PHP5.2.x
Reproduce code:
---------------
test.php (ASNI)
================
<?php
session_start();
$_SESSION['name'] = 'ÕÅÃô·å';
echo $_SESSION['name'];
?>
Expected result:
----------------
display:
=========
ÕÅÃô·å
Actual result:
--------------
display:
=========
text can't viewed correctly in charset "GBK".
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=48477&edit=1
Thread (3 messages)