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
{{ message }}
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.
What is the replacement for String>>#convertForWithConverter:, which has been removed in P10? Soup was using it and I'm not sure how to translate to the new Zn-based encoders. Naively, I tried just restoring the method in P10, but:
This is old misuse of Strings to store encoded bytes. The replacement would then be something like:
aByteString asByteArray decodeWith:#utf8
Of course, decoding will only work if the source is encoded the way you expect it to be. Plus the ZnCharacterEncoders are normally stricter (but can be relaxed).
Hence, the offending line can be replaced with:
converter decodeBytes: xmlData asByteArray
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Asked on Pharo Discord:
What is the replacement for
String>>#convertForWithConverter:
, which has been removed in P10? Soup was using it and I'm not sure how to translate to the new Zn-based encoders. Naively, I tried just restoring the method in P10, but:led to the error pictured...

cc/ @svenvc
The text was updated successfully, but these errors were encountered: