strange characters at beginning of file

Posted by luca on Stack Overflow See other posts from Stack Overflow or by luca
Published on 2011-01-11T16:34:57Z Indexed on 2011/01/11 16:53 UTC
Read the original article Hit count: 205

there are strange characters at the beginning of a file I'm editing (using textmate..) I don't know when they appeared, they're invisible in textmate but my script that reads the file goes crazy..

this is the first few chars in the file (as seen with od command):

0000000 177377 000120 000105 000117 000120 000114 000105 000072

the first 2 shouldn't be there I think.. maybe they were caused by some strange dropbox sync? Or something else.. but they tend to reappear (I don't yet know when..)

My question: what is that 177377 and a simple way to remove it in my ruby script? thanks

© Stack Overflow or respective owner

Related posts about ruby

Related posts about parsing