In ruby, optparse raises error when filename contains certain characters – Ubuntu
I'm using optparse in a ruby program (ruby 2.7.1p83) under Linux. If any of the command-line arguments are filenames with "special" characters in them, the parse! method fails with this error: invalid byte sequence in UTF-8 This is the code…