I have the following file named test.rb
encoding in UTF-16LE
# encoding: UTF-16LE
test = "test!"
p test
Running it with the following command produces no results
ruby ./test.rb
What am I missing here?
In case anyone is wondering, the reason I'm trying to set my source to UTF-16LE encoding is that I'm working with UTF-16LE input and output file encodings. My impression is that if I set encoding properly when I read in a file and set the encoding properly when I output and I have the # encoding:
set properly in my source, everything should just work. If anyone sees anything wrong with this (or an easier way) feel free to let me know.