I was previously doing an update via .rhtml templates creating an AJAX
:evaluate_remote_response. I use UTF-8 in my pages, and my app
requires that I be able to, say, put Japanese characters in.
The problem is that when I switched this over to an RJS template it
started eating the encoding. I now get garbage characters where before
I got the correct ones.
The code for the RHTML:
“front”, :content => simple_format( h(@card.front_side))) %>
“back”, :content => simple_format( h(@card.back_side))) %>
and for RJS:
page.replace_html ‘front’, simple_format( h( @card.front_side ) )
page.replace_html ‘back’, simple_format( h( @card.back_side ) )
If I go to the action manually and check, in the RHTML version it has
the correct characters; in the RJS version it has the \312\342 escape
Any way to turn off the escaping?