smbclient, php and special characters

Sebastian Hoffmann s.hoffmann at arikon.de
Tue Dec 13 14:29:37 GMT 2005


Hello,

i have a problem:

by using smbclient (V. 3.0.20b) with PHP (e.g. shell_exec), the output is right, if there are no special characters (eg. ä,ü,ö, ...).

But with these characters, the output gets wrong. I think all following characters from the special character to the line feed are gone.

Example:
smbclient '\\host\share' -D 'folder' -c 'dir' -U user%pw -N

without PHP (konsole):
.                                   D        0  Tue Dec 13 13:07:51 2005
..                                  D        0  Tue Dec 13 13:02:37 2005
aa829.doc                                25088  Wed Nov 16 10:48:53 2005
project_Ömlaut.zpj                       4070  Mon Dec 12 16:48:08 2005
a829.doc                                 25088  Wed Nov 16 10:48:53 2005

with PHP (shell_exec):
.                                   D        0  Tue Dec 13 13:07:51 2005
..                                  D        0  Tue Dec 13 13:02:37 2005
aa829.doc                                25088  Wed Nov 16 10:48:53 2005
project_  a829.doc                                  25088  Wed Nov 16 10:48:53 2005


Has anyone a solution for this problem? Thanks. (sorry for my english)


Sebastian 



More information about the smb-clients mailing list