jnicklas/evergreen — Issue #34: script tag escaping causing this is causing an "invalid byte sequence in UTF-8" error
Author: plukevdh
Created: 2011-11-01 18:02:07+00:00
State: open

```
ArgumentError - invalid byte sequence in UTF-8:
/Users/hungerandthirst/.rvm/gems/ruby-1.9.2-p290@crunch/gems/evergreen-0.4.1/lib/evergreen/template.rb:24:in `gsub'
/Users/hungerandthirst/.rvm/gems/ruby-1.9.2-p290@crunch/gems/evergreen-0.4.1/lib/evergreen/template.rb:24:in `escaped_contents'
/Users/hungerandthirst/.rvm/gems/ruby-1.9.2-p290@crunch/gems/evergreen-0.4.1/lib/evergreen/views/spec.erb:32:in `block in evaluate_source'
/Users/hungerandthirst/.rvm/gems/ruby-1.9.2-p290@crunch/gems/evergreen-0.4.1/lib/evergreen/views/spec.erb:31:in `each'
/Users/hungerandthirst/.rvm/gems/ruby-1.9.2-p290@crunch/gems/evergreen-0.4.1/lib/evergreen/views/spec.erb:31:in `evaluate_source'
/Users/hungerandthirst/.rvm/gems/ruby-1.9.2-p290@global/gems/tilt-1.3.3/lib/tilt/template.rb:209:in `instance_eval'
/Users/hungerandthirst/.rvm/gems/ruby-1.9.2-p290@global/gems/tilt-1.3.3/lib/tilt/template.rb:209:in `evaluate_source'
/Users/hungerandthirst/.rvm/gems/ruby-1.9.2-p290@global/gems/tilt-1.3.3/lib/tilt/template.rb:144:in `cached_evaluate'
/Users/hungerandthirst/.rvm/gems/ruby-1.9.2-p290@global/gems/tilt-1.3.3/lib/tilt/template.rb:127:in `evaluate'
/Users/hungerandthirst/.rvm/gems/ruby-1.9.2-p290@global/gems/tilt-1.3.3/lib/tilt/template.rb:76:in `render'
/Users/hungerandthirst/.rvm/gems/ruby-1.9.2-p290@crunch/gems/sinatra-1.2.7/lib/sinatra/base.rb:574:in `render'
/Users/hungerandthirst/.rvm/gems/ruby-1.9.2-p290@crunch/gems/sinatra-1.2.7/lib/sinatra/base.rb:467:in `erb'
/Users/hungerandthirst/.rvm/gems/ruby-1.9.2-p290@crunch/gems/evergreen-0.4.1/lib/evergreen/application.rb:40:in `block (5 levels) in application'
/Users/hungerandthirst/.rvm/gems/ruby-1.9.2-p290@crunch/gems/sinatra-1.2.7/lib/sinatra/base.rb:1171:in `call'
/Users/hungerandthirst/.rvm/gems/ruby-1.9.2-p290@crunch/gems/sinatra-1.2.7/lib/sinatra/base.rb:1171:in `block in compile!'
/Users/hungerandthirst/.rvm/gems/ruby-1.9.2-p290@crunch/gems/sinatra-1.2.7/lib/sinatra/base.rb:736:in `instance_eval'
/Users/hungerandthirst/.rvm/gems/ruby-1.9.2-p290@crunch/gems/sinatra-1.2.7/lib/sinatra/base.rb:736:in `route_eval'
/Users/hungerandthirst/.rvm/gems/ruby-1.9.2-p290@crunch/gems/sinatra-1.2.7/lib/sinatra/base.rb:720:in `block (2 levels) in route!'
/Users/hungerandthirst/.rvm/gems/ruby-1.9.2-p290@crunch/gems/sinatra-1.2.7/lib/sinatra/base.rb:770:in `block in process_route'
/Users/hungerandthirst/.rvm/gems/ruby-1.9.2-p290@crunch/gems/sinatra-1.2.7/lib/sinatra/base.rb:767:in `catch'
/Users/hungerandthirst/.rvm/gems/ruby-1.9.2-p290@crunch/gems/sinatra-1.2.7/lib/sinatra/base.rb:767:in `process_route'
/Users/hungerandthirst/.rvm/gems/ruby-1.9.2-p290@crunch/gems/sinatra-1.2.7/lib/sinatra/base.rb:719:in `block in route!'
/Users/hungerandthirst/.rvm/gems/ruby-1.9.2-p290@crunch/gems/sinatra-1.2.7/lib/sinatra/base.rb:718:in `each'
/Users/hungerandthirst/.rvm/gems/ruby-1.9.2-p290@crunch/gems/sinatra-1.2.7/lib/sinatra/base.rb:718:in `route!'
/Users/hungerandthirst/.rvm/gems/ruby-1.9.2-p290@crunch/gems/sinatra-1.2.7/lib/sinatra/base.rb:854:in `dispatch!'
/Users/hungerandthirst/.rvm/gems/ruby-1.9.2-p290@crunch/gems/sinatra-1.2.7/lib/sinatra/base.rb:656:in `block in call!'
/Users/hungerandthirst/.rvm/gems/ruby-1.9.2-p290@crunch/gems/sinatra-1.2.7/lib/sinatra/base.rb:820:in `block in invoke'
/Users/hungerandthirst/.rvm/gems/ruby-1.9.2-p290@crunch/gems/sinatra-1.2.7/lib/sinatra/base.rb:820:in `catch'
/Users/hungerandthirst/.rvm/gems/ruby-1.9.2-p290@crunch/gems/sinatra-1.2.7/lib/sinatra/base.rb:820:in `invoke'
/Users/hungerandthirst/.rvm/gems/ruby-1.9.2-p290@crunch/gems/sinatra-1.2.7/lib/sinatra/base.rb:656:in `call!'
/Users/hungerandthirst/.rvm/gems/ruby-1.9.2-p290@crunch/gems/sinatra-1.2.7/lib/sinatra/base.rb:641:in `call'
/Users/hungerandthirst/.rvm/gems/ruby-1.9.2-p290@global/gems/rack-1.3.3/lib/rack/head.rb:9:in `call'
/Users/hungerandthirst/.rvm/gems/ruby-1.9.2-p290@crunch/gems/sinatra-1.2.7/lib/sinatra/showexceptions.rb:21:in `call'
/Users/hungerandthirst/.rvm/gems/ruby-1.9.2-p290@crunch/gems/sinatra-1.2.7/lib/sinatra/base.rb:1292:in `block in call'
/Users/hungerandthirst/.rvm/gems/ruby-1.9.2-p290@crunch/gems/sinatra-1.2.7/lib/sinatra/base.rb:1323:in `synchronize'
/Users/hungerandthirst/.rvm/gems/ruby-1.9.2-p290@crunch/gems/sinatra-1.2.7/lib/sinatra/base.rb:1292:in `call'
/Users/hungerandthirst/.rvm/gems/ruby-1.9.2-p290@global/gems/rack-1.3.3/lib/rack/urlmap.rb:52:in `block in call'
/Users/hungerandthirst/.rvm/gems/ruby-1.9.2-p290@global/gems/rack-1.3.3/lib/rack/urlmap.rb:46:in `each'
/Users/hungerandthirst/.rvm/gems/ruby-1.9.2-p290@global/gems/rack-1.3.3/lib/rack/urlmap.rb:46:in `call'
/Users/hungerandthirst/.rvm/gems/ruby-1.9.2-p290@global/gems/rack-1.3.3/lib/rack/builder.rb:134:in `call'
/Users/hungerandthirst/.rvm/gems/ruby-1.9.2-p290@crunch/gems/capybara-1.1.1/lib/capybara/server.rb:17:in `call'
/Users/hungerandthirst/.rvm/gems/ruby-1.9.2-p290@global/gems/rack-1.3.3/lib/rack/handler/webrick.rb:59:in `service'
/Users/hungerandthirst/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service'
/Users/hungerandthirst/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run'
/Users/hungerandthirst/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'