Skip to content
This repository was archived by the owner on Apr 6, 2021. It is now read-only.

Encoding problem #18

@wprzyb

Description

@wprzyb

Here is my ics i want to use - and the problem is with the encoding. I know only a bit of ruby, but all my attempts to inject some UTF-8 forcing into config.ru was unsuccessful:

2017-11-02T23:18:58.801533+00:00 heroku[router]: at=info method=GET path="/" host=address-censored.herokuapp.com request_id=xxxxxxx-65a7-4f2f-xxxx-c9800e50537f fwd="xx.xx.xx.xx" dyno=web.1 connect=1ms service=449ms status=500 bytes=1054 protocol=https
2017-11-02T23:18:58.801307+00:00 app[web.1]: 2017-11-02 23:18:58 - Encoding::CompatibilityError - incompatible character encodings: UTF-8 and ASCII-8BIT:
2017-11-02T23:18:58.801322+00:00 app[web.1]: 	/app/vendor/bundle/ruby/2.3.0/gems/almanack-1.0.5/lib/almanack/themes/legacy/views/events.erb:15:in `concat'
2017-11-02T23:18:58.801323+00:00 app[web.1]: 	/app/vendor/bundle/ruby/2.3.0/gems/almanack-1.0.5/lib/almanack/themes/legacy/views/events.erb:15:in `block (2 levels) in singleton class'
2017-11-02T23:18:58.801324+00:00 app[web.1]: 	/app/vendor/bundle/ruby/2.3.0/gems/almanack-1.0.5/lib/almanack/themes/legacy/views/events.erb:4:in `each'
2017-11-02T23:18:58.801325+00:00 app[web.1]: 	/app/vendor/bundle/ruby/2.3.0/gems/almanack-1.0.5/lib/almanack/themes/legacy/views/events.erb:4:in `block in singleton class'
2017-11-02T23:18:58.801326+00:00 app[web.1]: 	/app/vendor/bundle/ruby/2.3.0/gems/almanack-1.0.5/lib/almanack/themes/legacy/views/events.erb:-6:in `instance_eval'
2017-11-02T23:18:58.801327+00:00 app[web.1]: 	/app/vendor/bundle/ruby/2.3.0/gems/almanack-1.0.5/lib/almanack/themes/legacy/views/events.erb:-6:in `singleton class'
2017-11-02T23:18:58.801327+00:00 app[web.1]: 	/app/vendor/bundle/ruby/2.3.0/gems/almanack-1.0.5/lib/almanack/themes/legacy/views/events.erb:-9:in `__tilt_19721980'
2017-11-02T23:18:58.801328+00:00 app[web.1]: 	/app/vendor/bundle/ruby/2.3.0/gems/tilt-2.0.8/lib/tilt/template.rb:170:in `call'
2017-11-02T23:18:58.801329+00:00 app[web.1]: 	/app/vendor/bundle/ruby/2.3.0/gems/tilt-2.0.8/lib/tilt/template.rb:170:in `evaluate'
2017-11-02T23:18:58.801330+00:00 app[web.1]: 	/app/vendor/bundle/ruby/2.3.0/gems/tilt-2.0.8/lib/tilt/template.rb:109:in `render'
2017-11-02T23:18:58.801330+00:00 app[web.1]: 	/app/vendor/bundle/ruby/2.3.0/gems/sinatra-2.0.0/lib/sinatra/base.rb:839:in `render'
2017-11-02T23:18:58.801331+00:00 app[web.1]: 	/app/vendor/bundle/ruby/2.3.0/gems/sinatra-2.0.0/lib/sinatra/base.rb:682:in `erb'
2017-11-02T23:18:58.801332+00:00 app[web.1]: 	/app/vendor/bundle/ruby/2.3.0/gems/almanack-1.0.5/lib/almanack/server.rb:62:in `block in <class:Server>'
2017-11-02T23:18:58.801332+00:00 app[web.1]: 	/app/vendor/bundle/ruby/2.3.0/gems/sinatra-2.0.0/lib/sinatra/base.rb:1632:in `call'
2017-11-02T23:18:58.801333+00:00 app[web.1]: 	/app/vendor/bundle/ruby/2.3.0/gems/sinatra-2.0.0/lib/sinatra/base.rb:1632:in `block in compile!'
2017-11-02T23:18:58.801334+00:00 app[web.1]: 	/app/vendor/bundle/ruby/2.3.0/gems/sinatra-2.0.0/lib/sinatra/base.rb:991:in `block (3 levels) in route!'
2017-11-02T23:18:58.801334+00:00 app[web.1]: 	/app/vendor/bundle/ruby/2.3.0/gems/sinatra-2.0.0/lib/sinatra/base.rb:1010:in `route_eval'
2017-11-02T23:18:58.801335+00:00 app[web.1]: 	/app/vendor/bundle/ruby/2.3.0/gems/sinatra-2.0.0/lib/sinatra/base.rb:991:in `block (2 levels) in route!'
2017-11-02T23:18:58.801336+00:00 app[web.1]: 	/app/vendor/bundle/ruby/2.3.0/gems/sinatra-2.0.0/lib/sinatra/base.rb:1037:in `block in process_route'
2017-11-02T23:18:58.801336+00:00 app[web.1]: 	/app/vendor/bundle/ruby/2.3.0/gems/sinatra-2.0.0/lib/sinatra/base.rb:1035:in `catch'
2017-11-02T23:18:58.801337+00:00 app[web.1]: 	/app/vendor/bundle/ruby/2.3.0/gems/sinatra-2.0.0/lib/sinatra/base.rb:1035:in `process_route'
2017-11-02T23:18:58.801338+00:00 app[web.1]: 	/app/vendor/bundle/ruby/2.3.0/gems/sinatra-2.0.0/lib/sinatra/base.rb:989:in `block in route!'
2017-11-02T23:18:58.801338+00:00 app[web.1]: 	/app/vendor/bundle/ruby/2.3.0/gems/sinatra-2.0.0/lib/sinatra/base.rb:988:in `each'
2017-11-02T23:18:58.801339+00:00 app[web.1]: 	/app/vendor/bundle/ruby/2.3.0/gems/sinatra-2.0.0/lib/sinatra/base.rb:988:in `route!'
2017-11-02T23:18:58.801340+00:00 app[web.1]: 	/app/vendor/bundle/ruby/2.3.0/gems/sinatra-2.0.0/lib/sinatra/base.rb:1094:in `block in dispatch!'
2017-11-02T23:18:58.801340+00:00 app[web.1]: 	/app/vendor/bundle/ruby/2.3.0/gems/sinatra-2.0.0/lib/sinatra/base.rb:1073:in `block in invoke'
2017-11-02T23:18:58.801343+00:00 app[web.1]: 	/app/vendor/bundle/ruby/2.3.0/gems/sinatra-2.0.0/lib/sinatra/base.rb:1073:in `catch'
2017-11-02T23:18:58.801344+00:00 app[web.1]: 	/app/vendor/bundle/ruby/2.3.0/gems/sinatra-2.0.0/lib/sinatra/base.rb:1073:in `invoke'
2017-11-02T23:18:58.801345+00:00 app[web.1]: 	/app/vendor/bundle/ruby/2.3.0/gems/sinatra-2.0.0/lib/sinatra/base.rb:1091:in `dispatch!'
2017-11-02T23:18:58.801346+00:00 app[web.1]: 	/app/vendor/bundle/ruby/2.3.0/gems/sinatra-2.0.0/lib/sinatra/base.rb:923:in `block in call!'
2017-11-02T23:18:58.801346+00:00 app[web.1]: 	/app/vendor/bundle/ruby/2.3.0/gems/sinatra-2.0.0/lib/sinatra/base.rb:1073:in `block in invoke'
2017-11-02T23:18:58.801347+00:00 app[web.1]: 	/app/vendor/bundle/ruby/2.3.0/gems/sinatra-2.0.0/lib/sinatra/base.rb:1073:in `catch'
2017-11-02T23:18:58.801348+00:00 app[web.1]: 	/app/vendor/bundle/ruby/2.3.0/gems/sinatra-2.0.0/lib/sinatra/base.rb:1073:in `invoke'
2017-11-02T23:18:58.801348+00:00 app[web.1]: 	/app/vendor/bundle/ruby/2.3.0/gems/sinatra-2.0.0/lib/sinatra/base.rb:923:in `call!'
2017-11-02T23:18:58.801349+00:00 app[web.1]: 	/app/vendor/bundle/ruby/2.3.0/gems/sinatra-2.0.0/lib/sinatra/base.rb:913:in `call'
2017-11-02T23:18:58.801350+00:00 app[web.1]: 	/app/vendor/bundle/ruby/2.3.0/gems/rack-protection-2.0.0/lib/rack/protection/xss_header.rb:18:in `call'
2017-11-02T23:18:58.801350+00:00 app[web.1]: 	/app/vendor/bundle/ruby/2.3.0/gems/rack-protection-2.0.0/lib/rack/protection/path_traversal.rb:16:in `call'
2017-11-02T23:18:58.801351+00:00 app[web.1]: 	/app/vendor/bundle/ruby/2.3.0/gems/rack-protection-2.0.0/lib/rack/protection/json_csrf.rb:26:in `call'
2017-11-02T23:18:58.801352+00:00 app[web.1]: 	/app/vendor/bundle/ruby/2.3.0/gems/rack-protection-2.0.0/lib/rack/protection/base.rb:50:in `call'
2017-11-02T23:18:58.801352+00:00 app[web.1]: 	/app/vendor/bundle/ruby/2.3.0/gems/rack-protection-2.0.0/lib/rack/protection/base.rb:50:in `call'
2017-11-02T23:18:58.801358+00:00 app[web.1]: 	/app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.3/lib/rack/null_logger.rb:9:in `call'
2017-11-02T23:18:58.801359+00:00 app[web.1]: 	/app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.3/lib/rack/head.rb:12:in `call'
2017-11-02T23:18:58.801360+00:00 app[web.1]: 	/app/vendor/bundle/ruby/2.3.0/gems/sinatra-2.0.0/lib/sinatra/base.rb:194:in `call'
2017-11-02T23:18:58.801360+00:00 app[web.1]: 	/app/vendor/bundle/ruby/2.3.0/gems/sinatra-2.0.0/lib/sinatra/base.rb:1955:in `call'
2017-11-02T23:18:58.801361+00:00 app[web.1]: 	/app/vendor/bundle/ruby/2.3.0/gems/sinatra-2.0.0/lib/sinatra/base.rb:1499:in `block in call'
2017-11-02T23:18:58.801362+00:00 app[web.1]: 	/app/vendor/bundle/ruby/2.3.0/gems/sinatra-2.0.0/lib/sinatra/base.rb:1726:in `synchronize'
2017-11-02T23:18:58.801363+00:00 app[web.1]: 	/app/vendor/bundle/ruby/2.3.0/gems/sinatra-2.0.0/lib/sinatra/base.rb:1499:in `call'
2017-11-02T23:18:58.801363+00:00 app[web.1]: 	/app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.3/lib/rack/handler/webrick.rb:86:in `service'
2017-11-02T23:18:58.801364+00:00 app[web.1]: 	/app/vendor/ruby-2.3.4/lib/ruby/2.3.0/webrick/httpserver.rb:140:in `service'
2017-11-02T23:18:58.801365+00:00 app[web.1]: 	/app/vendor/ruby-2.3.4/lib/ruby/2.3.0/webrick/httpserver.rb:96:in `run'
2017-11-02T23:18:58.801366+00:00 app[web.1]: 	/app/vendor/ruby-2.3.4/lib/ruby/2.3.0/webrick/server.rb:296:in `block in start_thread'
2017-11-02T23:18:59.161179+00:00 heroku[router]: at=info method=GET path="/stylesheets/calendar.css" host=address-censored.herokuapp.com request_id=xxxxxxxx-7e7a-4b61-xxxxx-dad3274852db fwd="xx.xx.xx.xx" dyno=web.1 connect=1ms service=11ms status=200 bytes=2847 protocol=https

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions