note 51942 added to function.urlencode

From: Date: Fri, 15 Apr 2005 20:48:24 +0000
Subject: note 51942 added to function.urlencode
Groups: php.notes 
Request: Send a blank email to php-notes+get-88075@lists.php.net to get a copy of this message
I was testing my input sanitation with some strange character entities. Ones like î and Ç were passed correctly and were in their raw form when I passed them through without any filtering. However, some weird things happen when dealing with characters like (these are HTML entities): ‼ ▐ ┐and Θ have weird things going on. If you try to pass one in Internet Explorer, IE will *disable* the submit button. Firefox, however, does something weirder: it will convert it to it's HTML entity. It will display properly, but only when you don't convert entities. The point? Be careful with decorative characters. PS: If you try copy/pasting one of these characters to a TXT file, it will translate to a ?. ---- Manual Page -- http://www.php.net/manual/en/function.urlencode.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+51942 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+51942&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+51942&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+51942&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+51942&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+51942&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+51942&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#88075) next »