#48477 [Opn->Bgs]: Session always store content in UTF-8
| From: | johannes@php.net | Date: | Thu, 18 Jun 2009 15:35:31 +0000 |
| Subject: | #48477 [Opn->Bgs]: Session always store content in UTF-8 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-138480@lists.php.net to get a copy of this message | ||
ID: 48477
Updated by: johannes@php.net
Reported By: dayseye at 21cn dot com
-Status: Open
+Status: Bogus
Bug Type: Session related
Operating System: Win32
PHP Version: 5.3.0RC3-dev
New Comment:
PHP doesn't care about encodings and passes the strings through, please
verify that you're not destroying the encoding somewhere else, send
wrong headers, etc.
Previous Comments:
------------------------------------------------------------------------
[2009-06-05 14:58:32] dayseye at 21cn dot com
5.3.0RC2 is OK, RC3-dev cause the problem.
------------------------------------------------------------------------
[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