note 71997 rejected from function.basename by didou

From: Date: Tue, 02 Jan 2007 23:08:35 +0000
Subject: note 71997 rejected from function.basename by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-121206@lists.php.net to get a copy of this message
Note Submitter: anax at ayni dot com ---- the php basename function is not UTF-8 proof: $fn = "dir/été.txt"; $bn = basename($fn); will return té.txt php-5.1.3-1 locale LANG=en_US.UTF-8 LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL= you may use the shell basename function, which works fine. suomi

« previous php.notes (#121206) next »