I am trying to load and parse text files with various encodings. Some
are iso-8859-1, some are pure ASCII and others utf-8. None of them
contain characters not available in iso-8859-1. What is a good
strategy to use when working with the standard string methods in Ruby
on these files? Upcase, for example, seems to ignore higher order
characters in iso-8859-1.
s = “hellö”
s.upcase == “HELLÖ”