Created
June 11, 2009 21:48
-
-
Save subelsky/128258 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
begin | |
text = JSON.generate(refresh_hash) | |
render :text => Iconv.iconv('utf-8','latin1',text).to_s | |
rescue StandardError | |
logger.warn("JSON generation error in refresh controller: #{$!}") | |
render :text => "Problem reading messages, please try again", :status => 500 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment