Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

ActionView::Template::Error (code converter not found (UTF-8 to UTF-16)) #103

Closed
nathancolgate opened this Issue Oct 16, 2012 · 12 comments

Comments

Projects
None yet

Rails 2.2.2 in production on heroku.

Not receiving emails. Check the logs and found:

ActionView::Template::Error (code converter not found (UTF-8 to UTF-16)):
    19:         [title, summary.gsub(/^/, "  "), nil].join("\n\n")
    20:       end
    21:     end.join
    22:     sections = sections.force_encoding('UTF-8').encode('UTF-16', :invalid => :replace).encode('UTF-8') if sections.respond_to?(:force_encoding)
    23: %>
    24: 
    25: <%= raw sections %>
  vendor/bundle/ruby/1.9.1/gems/exception_notification-3.0.0/lib/exception_notifier/views/exception_notifier/exception_notification.text.erb:22:in `encode'
  vendor/bundle/ruby/1.9.1/gems/exception_notification-3.0.0/lib/exception_notifier/views/exception_notifier/exception_notification.text.erb:22:in `_vendor_bundle_ruby_______gems_exception_notification_______lib_exception_notifier_views_exception_notifier_exception_notification_text_erb___885119307790342253_46234820'

+1

Looks like this might be a solution:

alanjds/exception_notification@048fc6b

Pepan commented Oct 25, 2012

same problem in rails 3.2.8 on centos server and exception_notification (3.0.0)

UPDATE: switching back to exception_notification (2.6.1) solves problem too

emiltin commented Oct 28, 2012

same problem here, rails 3.2.8 on heroku

The fix alanjds/exception_notification@048fc6b from @alanjds works. I confirm. Heroku, Rails 3.2.8.

alanjds commented Oct 30, 2012

Sent not a pull request before because I wrote no tests. But hey, it works!

@smartinez87 smartinez87 added a commit that referenced this issue Oct 30, 2012

@smartinez87 smartinez87 Merge pull request #111 from alanjds/master
Fix for issue #103
108c5a8
Owner

smartinez87 commented Oct 30, 2012

Closing this, for I merged #111

Rails 3.2.6, ruby 1.9.2p290:
3.0.0 causes ActionView::Template::Error (code converter not found (UTF-8 to UTF-16))
2.6.1 works fine

+1, going back to 2.6.1

+1 Rolling back to 2.6.1 works for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment