Re: Use of special characters in filenames results in IE problems

From: Date: Fri, 20 Apr 2001 21:33:22 +0000
Subject: Re: Use of special characters in filenames results in IE problems
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-49606@lists.php.net to get a copy of this message
rawurlencode() - http://php.net/rawurlencode <?php $str = 'Oplæg'; print $str . '<br>'; $enc = rawurlencode($str); print $enc . '<br>'; ?> -dan Previously, Floyd Piedad said: > > I discovered a bug in my program for uploading files, which stores the > filename in the database in order to create a link for it on the web page in > the future. The bug is when the filename makes use of special characters > (e.g. Oplæg). When I create a link to the file, the link works with > Netscape. With IE however, it says that file is not found. I discovered that > if I use the "encoded" version of the file name ("Opl%e6g") it works on > both > IE and Netscape. What function or code is used to convert to this format? -- If carpenters made buildings the way programmers make programs, the first woodpecker to come along would destroy all of civilization. -Weinberg's Second Law

« previous php.general (#49606) next »