Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

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
Closed

Comments

@nathancolgate
Copy link

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'
@dsilver829
Copy link

+1

Looks like this might be a solution:

alanjds@048fc6b

@Pepan
Copy link

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
Copy link

emiltin commented Oct 28, 2012

same problem here, rails 3.2.8 on heroku

@DanielVartanov
Copy link

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

@alanjds
Copy link

alanjds commented Oct 30, 2012

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

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

Closing this, for I merged #111

@trushkevich
Copy link

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

@UsinaSites
Copy link

+1

1 similar comment
@klausistblau
Copy link

+1

@mattolson
Copy link

+1, going back to 2.6.1

@rmahnovetsky
Copy link

+1

@dsilver829
Copy link

+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
Labels
None yet
Projects
None yet
Development

No branches or pull requests