Closed biud436 closed 6 months ago
files = []
if File.exist? File.join(indir, 'info.txt')
input = File.open(File.join(indir, 'info.txt'), 'rb')
input.read.each_line do |line|
filename = line.gsub("\n", '') # it is always ASCII-8BIT
filename.force_encoding('utf-8')
files.push(File.join(indir, filename))
end
input.close
else
files = Dir.glob(File.join(indir, '*.rb'))
end
If the filename contains Korean characters that includes non ASCII, you will see the following error (Windows 11 + OneDrive)
As a result of this error, creating a file like
Scripts.rvdata2
will fail.In the aftermath,