ID: 48477 Updated by: johan...@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