Rails report error when rhtml file contains table character


#1

rails report error when rhtml file contains table character “\t”

Environment:

ruby 1.8.2 (2004-12-25) [i386-mswin32]
windows xp

Description:
use the code from
http://www.pragmaticprogrammer.com/titles/rails/code.html
and editing some files, add some table character(\t ,not the html
table tag) in rhtml file,test it,it always run normally , but after
modified svereal times,the problem ariseing suddently.
the web page report error and the error infomation kept changing
(between 1 to 4)when i press F5 to reload page.

after restarting the webrick server, sometimes the problem disappered
,sometimes it didn’t

1---------------

compile error
./script/…/config/…//app/views//layouts/store.rhtml:24: Invalid char
\351' in expression ./script/../config/..//app/views//layouts/store.rhtml:28: Invalid char\030’ in expression

2---------------

compile error
./script/…/config/…//app/views//layouts/store.rhtml:24: syntax error

3---------------

compile error
./script/…/config/…//app/views//layouts/store.rhtml:24: syntax error
./script/…/config/…//app/views//layouts/store.rhtml:28: syntax error

4---------------

compile error
./script/…/config/…//app/views//layouts/store.rhtml:24: syntax error
./script/…/config/…//app/views//layouts/store.rhtml:28: Invalid char
`\232’ in expression

testing on linux(1.8.3) is ok, the problem only happened in my windows
xp(1.8.2), and when i upgrade the ruby version to 1.8.3 ms-win32, the
problem disappered …

had anybody met the same problem?