何らかの理由で、私のビューの1つで次のエラーが発生し始めました。開発では発生せず、本番環境でのみ発生します。
これがバックトレースのスニペットです、何かアイデアはありますか?
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 %>