cli_flags/source_encoding.rb
tests/_examples/cli_flags/source_encoding.rb in the metorex repository.
# Under `-K`, the literals of a script with no magic comment are in the
# encoding the flag names, and so is __ENCODING__.
p "a".encoding
p __ENCODING__