Naomi Schor wrote:

On Fri, 17 Dec 2004, Tzafrir Cohen wrote:



On Fri, Dec 17, 2004 at 04:47:25PM +0200, Ilya Konstantinov wrote:


Naomi Schor wrote:



WITHOUT mounting. I point Konqueror to

smb://KWIN98/KITAA

and I see the files ok, but I see gibberish when the file names are in
Hebrew.



From a short look at the KDE source code (
http://webcvs.kde.org/kdenonbeta/kio_smbro/kio_smb.cpp?rev=1.58&view=auto
), I see that it simply uses the "smbclient" utility to access the SMB
share without mounting. To list files, it executes the "dir" command in
smbclient.


I'm not familiar with relevant KDE code there, but appears to look for
'smbclient' in the PATH, right?

if so, create the following script as /usr/local/bin/smbclient

#!/bin/sh

if [ -e /tmp/862 ]
 /usr/bin/smbclient "$@" | iconv -f cp862
else
 /usr/bin/smbclient "$@"
fi


(untested) Hopefully this script will apply translation only when the file /tmp/862 exists. Create it and delete it when necessary.



Thanks, but

smbclient -N -c dir //kwin98/kitaa|iconv -f cp862

give all the english file names ok, but for the one fiel name in hebrew:

iconv: illegal input sequence at position 827

(and of course I get the same result with the script)

Then maybe it's some other encoding. Prehaps cp1255.

If you can't find an encoding that works, then (assuming it the names of the files are not confidential), redirect smbclient's output to file and attach this file to a mailing list post.


================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]



Reply via email to