Skip to content

Instantly share code, notes, and snippets.

@igaiga igaiga/enc_test.rb
Created May 31, 2018

What would you like to do?
# enc_test.txt に 日本語 を1行書いておく"enc_test.txt") do |f|
puts out_str = f.each_line.first
puts out_str.encoding
puts in_str = "中の日本語"
puts in_str.encoding
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.