Re: find encoding of filenames
Jochen Schulz wrote:
> Kamaraju S Kusumanchi:
>>
>> Moreover, the original question still remains. Given a bunch of files,
>> how do I determine their current encoding?
>
> Just a thought:
>
> $ touch äöüß.éèâ
>
> $ ls -lh äöüß.éèâ
> -rw-r--r-- 1 jrschulz jrschulz 0 2007-03-26 18:40 äöüß.éèâ
>
> $ ls -1 > filelist
>
> $ file filelist
> filelist: UTF-8 Unicode text, with escape sequences
>
For me the output of file is different and does not include the encoding
information.
$tree /backup_halo_system_files_20070216 > filelist
$file filelist
filelist: ASCII text
ls -al, ls -1 etc., also give the same result.
raju
--
Kamaraju S Kusumanchi
http://www.people.cornell.edu/pages/kk288/
http://malayamaarutham.blogspot.com/
Reply to: