Skip to content

Commit

Permalink
enforce utf8
Browse files Browse the repository at this point in the history
  • Loading branch information
manno committed Apr 25, 2012
1 parent fcfc5d2 commit c7272d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/static_program_export.rb
Expand Up @@ -87,8 +87,8 @@ def save_response(filename)
document.write_html_to(f, :encoding => "UTF-8")
end
else
File.open(file_path, "w") do |f|
f.write(@session.response.body)
File.open(file_path, "w:utf-8") do |f|
f.write(@session.response.body.encode("UTF-8", :invalid => :replace, :undef => :replace, :replace => "?"))
end
end
end
Expand Down

0 comments on commit c7272d0

Please sign in to comment.