Dave van der Veen

Results 3 comments of Dave van der Veen

The observed behavior of `String(decoding:as:)` in Swift is as follows: When decoding detects invalid bytes, it replaces them with the Unicode replacement character � (U+FFFD). As a result, it still...

Related to https://github.com/realm/SwiftLint/issues/5785

> > This just isn't true, `String(decoding:as:)` will insert the replacement character (repair the string) as demonstrated, and as you can see in the [code for the init itself](https://github.com/swiftlang/swift/blob/f858e713ce2bb98a1b2bbfd2d20aa86b3df54cb8/stdlib/public/core/String.swift#L445). How...