rails中builder如何正确输出中文?
[code]
xml.instruct! :xml, :version => "1.0", :encoding => "GB2312"
headers['Content-Type'] = 'text/xml; character=GB2312'
[/code]
这些都做了,但是输出总是乱码,不能正确输出中文。何故?
[code]
xml.instruct! :xml, :version => "1.0", :encoding => "GB2312"
headers['Content-Type'] = 'text/xml; character=GB2312'
[/code]
这些都做了,但是输出总是乱码,不能正确输出中文。何故?