ushahidi/Ushahidi_Web — pull request #269 by unthinkingly (2012-02-22 21:46:18+00:00)
Title: Fixed admin form to work with non-ASCII characters (updated)

This fix is needed to support Arabic, Hebrew, Russian etc, anything other than the Latin charset.

The function `encode` does not support UTF-8 as per conversation at https://github.com/ushahidi/Ushahidi_Web/pull/134

I confirmed this fixes #262 (Hebrew) and #214 (Russian).

Broken screenshot: http://imgur.com/s5Bxn,FaUl7#0
Fixed screenshot: http://imgur.com/s5Bxn,FaUl7#1

This is a reformulation of an old pull request by matsuu, (which got old enough that it no longer applies cleanly). I used the same basic strategy of replacing unencode wherever I could find it. NOTE: I did not include the base64 stuff in his patch — I hope this makes this easier to apply.