#48477 [Opn]: Session always store content in UTF-8

From: Date: Fri, 05 Jun 2009 14:58:32 +0000
Subject: #48477 [Opn]: Session always store content in UTF-8
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-138059@lists.php.net to get a copy of this message
 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)

« previous php.bugs (#138059) next »