ruby - Rails 3.2 page caching incompatible character encodings: UTF-8 and ASCII-8BIT -
I've successfully cached the page. This page contains words like: :: But when we call on the cached page the following error occurs
[2014-02-18 01:35:24] Error Encoding :: Compatibility error: Incompatible character encoding: UTF-8 and ASCII-8 BIT / Home / Asgar /. RVM / Games / Ruby-1.9.3-P484 / Village / Track-1.4.4 / Lib / Tra / Handler / Whibric RB: 72: 'Block In Service' / Home /sagar/.rvm/gems/ruby-1.9.3-p484/gems/rack-1.4.5/lib/rack/response.rb:87:in 'Every' / Home / sagar / .rvm / gems / ruby- 1.9.3-p 484 / gem / rack-1.4.5 / leeb / rack / reaction. RB: 87: `each '/home/sagar/.rvm/gems/ruby-1.9.3-p484/gems/rack- 1.4.5 / lib / rack / body_proxy.rb: 31:` each' / home / sagar Webrick.rb: 71: `service '/home/sagar/.rvm/rubies/ruby-info/rvm/gems/ruby-1.9.3-p484/gems/rack-1.4.5/lib/rack/handler/ 1.9.3-p484 / lib / ruby / 1.9.1 / webrick / httpserver.rb: 138: in 'service' / home /sagar/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9 .1 / webrick / httpserver.rb: 94: IN 'run' / home / asgar /. R.V.M. / RBI / Ruby-1.9. 3-p484 / lib / dark red / 1.9.1 / w ebrick / server. Rb: 191: 'start_ block in thread'
I tried both webcam and thin I was giving the error, I tried many different solutions but did not work for me. What I tried: The bottom line was added to the layout
& lt; Meta http-equiv = "content type" content = "text / html; charset = UTF-8" />
Added comment in controller # encoding: tried UTF-8 and some more solutions like this. Answer: If you know the answer, error on thin error on WEBrik
Comments
Post a Comment