Invalid char when starting scripts

Posted on June 11, 2007 in Vim

foobar.rb:1: Invalid char \357' in expression foobar.rb:1: Invalid char\273' in expression foobar.rb:1: Invalid char `\277' in expression

Your script gives you this error and and vim shows nothing ? Try to set :set nobomb and save the file.

When you start vim in binarymode, vim -b foobar.rb, than you see the invalid chars