See Ill-formed Code Unit Sequences for information about how ill-formed code unit sequences are handled in sessions with Unicode Pass Through (UPT) enabled.
In sessions where UPT is not enabled, the illegal form-of-use exception always generates an illegal form-of-use error. External single-byte character sets do not have an illegal form-of-use.