unknown encoding in CD from ms windows

Felipe Figueiredo philsf at ufrj.br
Wed Oct 4 16:41:56 UTC 2006


On Monday 02 October 2006 02:08, Felipe Figueiredo wrote:
> Hello,
> 
> I am using Kubuntu Dapper here, and have an annoying problem trying to 
access 
> files from a CD recorded in a Windows, because of accents in filenames. 
> 
> I *think* the CD was recorded in a windows version previous to XP, as I also 
> *think* XP uses UTF-8 (as ubuntu, by default). Enough of thinking.
> 
> The CD correctly displays the accentuated filnames in windows XP, but I 
can't 
> get any luck in linux. I tested some encodings with the following cmd:
> 
> $ ls /cdrom | iconv -t utf8 -f [encodiing]
> 
> where [encoding] was tried to be iso8859-1, latin, and windows-1250 to 1259. 
> None of these are the encoding.
> 
> Question: is there a way to actually discover the right one, instead of 
> trying? Of course I could do a script to try every one listed in "iconv -l", 
> but is it too much to ask to exist a way to query the media and ask the 
> encoding it is using?
> 

Ok, so I remembered from my DOS days that there is a "cp860" encoding for my 
locale, and surprisingly this is what the CD is encoded with. 

The question that remains is:

How can I query the CD's fs to know exactly what encoding it is using?

Anyone?

regards
FF




More information about the ubuntu-users mailing list