From: Brian Candler Date: 2010-07-12T17:47:58+09:00 Subject: Re: how to convert it into utf-8? Pen Ttt wrote: > pt@pt-laptop:~$ file /home/pt/myday > /home/pt/myday: data 'file' knows many file formats - look at /usr/share/file/magic or /etc/magic depending on your system. But this isn't one of them. Neither is the data UTF-8 text, or at least, the header isn't. You could look to see if there are any snippets of readable text in it: strings /home/pt/myday | less But if not, then it really is just binary data, and its meaning will depend on what program wrote it in the first place. -- Posted via http://www.ruby-forum.com/.