Updated by nobu (Nobuyoshi Nakada) 11 months ago
Parsing an invalid encoding symbol raises an `EncodingError`. It must be a `SyntaxError`. https://github.com/ruby/ruby/pull/10014
Back