encoding property
The encoding of the payload as a MIME type string, decoded leniently.
A display view: malformed UTF-8 byte sequences are replaced with U+FFFD (the replacement character). Use encodingBytes for the exact data.
Delivered length-carried, so an interior NUL — which canon carries across
the wire byte-exact, since a MIME id or schema built with
z_encoding_from_substr may contain one — survives here rather than
truncating at the seam.
Implementation
final String? encoding;