CSV.open("./shift_jis.csv", "w", :encoding => "SJIS") do |writer|
writer << ["こんにちは", "どうもどうも"]
end
:encodingを指定していなかったらutf8
Go to list of users who liked
More than 5 years have passed since last update.
CSV.open("./shift_jis.csv", "w", :encoding => "SJIS") do |writer|
writer << ["こんにちは", "どうもどうも"]
end
:encodingを指定していなかったらutf8
Register as a new user and use Qiita more conveniently
Go to list of users who liked