I'm I correct that internal_encoding isn't needed at all when writing =20=

to an IO?  The conversion seems to happen automatically.  For example, =20=

this:

   # encoding: UTF-8
   open("data.txt", "w:UTF-16LE:UTF-8") do |file|
     data =3D "My data=85"
     file.puts data
   end

seems to produce the same output as when I leave out the second =20
encoding:

   # encoding: UTF-8
   open("data.txt", "w:UTF-16LE") do |file|
     data =3D "My data=85"
     file.puts data
   end

Is internal_encoding() for reading only?

James Edward Gray II=