[Samba] Re: How to handle special characters in filenames
Michael B Allen
mba2000 at ioplex.com
Tue May 16 15:29:29 GMT 2006
On Tue, 16 May 2006 10:19:01 +0200
Henrik Zagerholm <henke at mac.se> wrote:
> Hi,
>
> I'm using samba 3.0.21 on a FC 4 box.
> I'm connecting to Win XP pro clients.
>
> Using smbclient I can get and put files which contain '%' in file names.
>
> Using libsmbclient smbc_open this is not possible. I get 'No such
> file or directory Errno::ENOENT' error.
>
> Any ideas how to solve this.
> I guess it has to do with escaping special characters in smb urls but
> I haven't found the correct way of doing this.
Try standard url escapes %<hexcode>. For example if you have '%' in your
path like "p%th" then 0x25 the hexcode so you need "p%25th".
Mike
More information about the samba
mailing list