note 29272 added to function.urldecode

From: Date: Fri, 07 Feb 2003 20:42:41 +0000
Subject: note 29272 added to function.urldecode
Groups: php.notes 
Request: Send a blank email to php-notes+get-43586@lists.php.net to get a copy of this message
For compatibility of new and old brousers: %xx -> char %u0xxxx -> char function unicode_decode($txt) { $txt = ereg_replace('%u0([[:alnum:]]{3})', '&#x\1;',$txt); $txt = ereg_replace('%([[:alnum:]]{2})', '&#x\1;',$txt); return ($txt); } -- http://www.php.net/manual/en/function.urldecode.php http://master.php.net/manage/user-notes.php?action=edit+29272 http://master.php.net/manage/user-notes.php?action=delete+29272 http://master.php.net/manage/user-notes.php?action=reject+29272

« previous php.notes (#43586) next »