#18874 [Opn->Fbk]: Certain Japanese characters break PHP's $_GET and $_POST

From: Date: Tue, 13 Aug 2002 05:05:28 +0000
Subject: #18874 [Opn->Fbk]: Certain Japanese characters break PHP's $_GET and $_POST
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-16575@lists.php.net to get a copy of this message
ID: 18874 Updated by: kalowsky@php.net Reported By: erica@simpli.biz -Status: Open +Status: Feedback Bug Type: Output Control Operating System: Windows XP PHP Version: 4.1.2 New Comment: Does this still happen with a newer version of PHP? Previous Comments: ------------------------------------------------------------------------ [2002-08-13 00:44:01] erica@simpli.biz I've put an example script here: http://clients.simpli.biz/contact.php and the .phps is http://clients.simpli.biz/contact.phps Basically, there is a specific Japanese character that translates to a [ in ASCII. Since this character contains a [, PHP treats this as the beginning of an array, and since it sees no ending delimiter, it ignores that form field. Any form input with that character then becomes broken in PHP. Since it is a fairly common character, this has a large impact. Go to the script above and change your character encoding, and you'll see exactly what I mean. When you hit Submit, the script just prints out all submitted variables. Any form inputs with a name containing that character do not submit at all. Thanks, Erica (SlashChick on irc.openprojects.net #php) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=18874&edit=1

« previous php.bugs (#16575) next »