--- In [email protected], "Mohammad Al-Mossawi"
<[EMAIL PROTECTED]> wrote:
>
> Dear Lug,
>
> Anyone can tell me how to solve this problem. I got a zip file which i
> extracted. The enclosed files names are in arabic so the result of the
> extraction looks like.
>
> -rwxrwxrwx 1 mossawi users 23342 2004-01-14 03:47 ??? ???.htm
> -rwxrwxrwx 1 mossawi users 2932048 2003-02-14 03:14 ?ã? ??.wmv
>
> Now, I can't execute these files coz they dont have a proper name i
guess. I
> try renaming them, but how do you rename a file whith a funny name?
>
>
> Thanks
>
> Mo
>
It would be interesting to know at what point the filenames are being
"corrupted". On a few sites they mentioned that a filename is just a
sequence of bytes, as far as Linux is concerned, so it's not stored in
a character-set dependent way. I can imagine two possibilities:
1. The unzip utility is messing them up.
2. The ls command is failing to render the filename correctly.
In case 1., you should be able to rename the files with the mv command
if you put single quotes around the filename. I would definitely try
that in any case. mv '??? ???.htm' whatever.htm
If it doesn't work (probably case 2), I think you can still read the
filename bytes from the OS, using the C library or equivalent.
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/dubailug/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/