class Encoding::CompatibilityError Parent: EncodingError Raised by Encoding and String methods when the source encoding is incompatible with the target encoding. Ruby Core © 1993–2020 Yukihiro MatsumotoLicensed under the Ruby License.Ruby Standard Library © contributorsLicensed under their own licenses.