def index
table = Ruport::Data::Table.new :data => [["dd","男",3], [3,4,5]],
:column_names => %w[姓名 性别 年龄]
puts table.to_csv #-------1
send_data table.to_csv,
:type => "application/csv",
:disposition => "inline",
:filename => "report.csv"
end
在第四行打印的时候是中文,但是最后到处的文件就是乱码!