I have the following file called test.rbencoding inUTF-16LE
test = "test!"
p test
Running with the following command fails
ruby ./test.rb
What am I missing here?
In case someone is wondering, the reason I'm trying to install the source code for the UTF-16LE encoding is because I work with the input and output encodings of UTF-16LE. My impression is that if I configure the encoding correctly when I read it in the file and configure the encoding correctly when exiting, and I set it correctly # encoding:in my source, everything should work. If anyone sees something wrong with this (or in a simpler way), feel free to let me know.