Is there an accepted way to deal with regular expressions in Ruby 1.9 for which the encoding of the input is unknown? Let\'s say my input happens to be UTF-16 encoded:
Follow the advice of this page: http://gnuu.org/2009/02/02/ruby-19-common-problems-pt-1-encoding/ and add
# encoding: utf-8
to the top of your rb file.