Companion

Properties

Link copied to clipboard

A strategy for multiplatform library consumers which will be either U_003F or U_FFFD, depending on the platform, and reflects how Kotlin's decodeToString and encodeToByteArray functions operate. On Jvm, this will be a reference to U_003F. On all other platforms, this will be a reference to U_FFFD.

Link copied to clipboard

A strategy which will throw a MalformedEncodingException when any invalid sequence is encountered during text to UTF-8 byte, or UTF-8 byte to text transformations.

Link copied to clipboard

A strategy which replaces an invalid character sequence with a 1-byte sequence of 0x3f (i.e. character ?) during text to UTF-8 byte transformations, and will replace partial surrogate code points with 1 replacement character during UTF-8 byte to text transformations.

Link copied to clipboard

A strategy which replaces an invalid character sequence with a 3-byte sequence of 0xef, 0xbf, 0xbd (i.e. character ) during text to UTF-8 byte transformations, and will replace partial surrogate code points with 3 replacement characters during UTF-8 byte to text transformations.