Render :partial, accentuated characters and Ajax preview


#1

Hi all,

I added a textile preview Ajax - 1 - button to an edit page, and
accentuated characters now show up corrupted (but only in the preview
area)

As

  • they are displayed correctly in the rest of the page,
  • they are still correct when they reach the ‘preview’ controller
    , I guess “render :partial” is the culprit.

Is there a way to tell render how to render text? I didn’t find it in
the doc.

Any idea?

TIA

Alain R.

[1]: based on http://railsdiary.com/diary/ajax_markdown_preview