Logan Capaldo wrote:
> On May 4, 2006, at 12:00 AM, Nathan Olberding wrote:
> 
>>> What system are you on that 'cat' is so smart? (Maybe cat isn't so
>>
>> 2.txt: MPEG 1.0 Layer I, 128 kbit/s, ? Hz stereo
>>
>> -- 
>> Posted via http://www.ruby-forum.com/.
>>
> 
> Aha, then I'm going to guess that the encoding is probably Western
> (Mac) which if I am not mistaken is a variation on ISO-8895-1.
> Although the response from file is interesting. Is it possible it was
> saved as UTF16?

Anything is possible :-) I just write things in text editors and have 
this irrational expectation that the text will be immediately usable!

running "head 2.txt" shows that there's a character or two of 
gobbledygook at the start of the file, which I'm guessing is some 
indication of the character set used.

Hmm. Maybe I'll instead grep through the output of "cat #{filename}".

-- 
Posted via http://www.ruby-forum.com/.