Archived Forum Post

Index of archived forum posts

Question:

sFtp wrong directory/file names with german umlaute (ä,ü,ö)

Apr 08 '16 at 12:34

Hi, i want to read over sftp (CKSFtp) directory/files what names can include german umlaute (ä,ö,ü).

Use PHP/Apache on MAC / Linux. Chilkat 9.5.0.56

If CKSFtp reads the directory/file it translates ä to a, ö to o and so on. Therefore i get not the right directory/file names and the common process will break.

Have you any idea to solve this issue?

Thanks Ralf


Accepted Answer

Please use the version of Unicode.


Answer

Hi muggle222.

I don't understand. I use Chilkat with PHP and Apache as PHP extension. Where i can download it, or how I can use the unicode version of the PHP extensions?

grz


Answer

Solved.

I find out that I need set explicit on booth components CKSFtp and CKSftpFIle the Property Utf8 to true.

Example:

$sftp->put_Utf8(true); $handle = $sftp->openDir($dir); $dirlist = $sftp->ReadDir($handle); $dirlist->put_Utf8(true);

Then the german umlaute (ä,ö,ü ...) will correct proceed.