You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, Source.readString can only emit a replacement character when ill-formed UTF-8 code units are encountered during decoding.
A similar stdlib function, ByteArray.decodeToString, however, can throw an exception in such cases if a user specifies the corresponding option (throwOnInvalidSequence).
We should consider providing an API consistent with stdlib.
The text was updated successfully, but these errors were encountered:
Currently,
Source.readString
can only emit a replacement character when ill-formed UTF-8 code units are encountered during decoding.A similar stdlib function,
ByteArray.decodeToString
, however, can throw an exception in such cases if a user specifies the corresponding option (throwOnInvalidSequence
).We should consider providing an API consistent with stdlib.
The text was updated successfully, but these errors were encountered: