Open nobu opened 8 months ago
The current behavior is compatible with IO
:
str = "\xFE\xFFColumn1,Column2\n" + "\"value1.1\",value1.2\n"
File.write("/tmp/xxx.txt", str)
File.open("/tmp/xxx.txt", "rb", encoding: "utf-16") do |io|
io.gets *["\n", 8192]
end
If we want to change the behavior, we may want to change the IO
's behavior too.
Fix #78