[Rails] tab characters with Rails 1.1 on Windows

Jeff Cole
Tue, 01 Aug 2006 21:16:03 -0000

We just upgraded to Ruby 1.8.4 and Rails 1.1.  It works fine on my Mac
OSX, but in Windows, Rails spits out errors like "Invalid char
`\002'' in
expression".  Apparently, Ruby or Rails on Windows has a problem parsing
tab characters. This seems to be a common problem:
  http://softiesonrails.com/articles/2006/04/27/spaces-not-tabs

However, the only recommended solutions seems to be to replace all the
tabs with spaces in your entire source tree.   Is there a different
solution?  And does anyone know exactly why this is happening?

thanks,
Jeff