note 73974 deleted from function.str-replace by nlopess

From: Date: Mon, 19 Mar 2007 20:07:48 +0000
Subject: note 73974 deleted from function.str-replace by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-124596@lists.php.net to get a copy of this message
Note Submitter: krzysztof at podhorodynski dot info ---- if you're creating a form tu upload files, and file that is uploaded has polish font (ąćęłńóśżź) and after uploading you give a link to this file http://server/upload/ąćęłńóśżź.txt it won't work so you must change polish fonts to it's representation in link coding. $serwer = array (' ', "±", "ć", "ę", "ł", "ń", "ó", "¶", "ż", "Ľ"); $link = array ('%20', "%b1", "%e6", "%ea", "%b3", "%f1", "%f3", "%b6", "%bf", "%bc"); $filename = str_replace($serwer, $link, $filename);

« previous php.notes (#124596) next »