force utf8 and replace unknown chars

This commit is contained in:
Kyle Drake 2013-07-15 01:03:49 +02:00
parent f84008f32f
commit aff143bbe1

View file

@ -56,7 +56,7 @@ css:
.row .row
.span12 .span12
div id="editor" style="width: 100%; height: 600px; position: relative;" div id="editor" style="width: 100%; height: 600px; position: relative;"
#{@file_data} #{@file_data.encode('utf-8', 'binary', :invalid => :replace, :undef => :replace)}
.row .row