Re: Mac OS X file name encoding problem
| From: | Giulio | Date: | Tue, 23 Aug 2005 13:08:21 +0000 |
| Subject: | Re: Mac OS X file name encoding problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-221163@lists.php.net to get a copy of this message | ||
Jasper,
thanks for your answer,
Il giorno 23/ago/05, alle ore 2:38 PM, php-general-digest-help@lists.php.net ha scritto:
Da: Jasper Bryant-Greene <jasper@bryant-greene.name> Data: 23 agosto 2005 0:39:32 PM GMT+02:00 A: php-general@lists.php.net Oggetto: Re: [PHP] Mac OS X file name encoding problem Giulio wrote:At the moment, just trying to isolate the problem, I assign the $filename value directly from the php script, and not from a posted form, so I assume that the variable content encoding is ISOLatin1 ( the encoding of PHP ). Anyway, trying utf8_decode I have gain an error on the ftp_fput function... Regards,I have a problem with a script when it is runs on a Mac OS X environment. [snip] The problem appears when $filename contains special characters, like accented chars, on Mac OS X the ftp_fput function returns me an error. I thinked that the problem could depend on the filesystem encoding, that on Mac OS X is Unicode, so I tryied this before: $filename = utf8_encode($filename);Wouldn't it be utf8_decode(), since you're trying to go *from* a Unicode filesystem (Mac OS X)?
Giulio
Jasper