by duckerude · 1y ago · 0 comments
If you run into this when encoding to UTF-8 then your source data isn't valid Unicode and it depends on what it really is if not proper Unicode. If you can validate at other boundaries then you won't have to deal with it there.
If you don't actively make a choice then decoding al la WTF-8 comes natural. Anything else is going to need additional branches.