The method Utf8>>withAll: has been added, which restricts the composition of Utf8 instances to avoid malformed Utf8. However, applications that rely on ByteArray inputs containing Utf8 characters may have used withAll: as part of the process of decoding the input, which errors. This was not the intended usage of Utf8.
To convert a ByteArray containing UTF-8 encoded text into a string, in v3.5 and later, you can use the methods:
ByteArray >> decodeFromUTF8ToString
ByteArray >> decodeFromUTF8ToUnicode
This replaces patterns such as:
(Utf8 withAll: <aByteArrayContainingEncodings>) decodeToString
Last updated: 5/13/19