News for hackers. Stuff that matters.
Re:The History and rationale of the Python 3 Unicode model f... by zokier on Wednesday December 14, 2022 @03:02PM (#33989451)
> How does using UTF-8 to represent strings help? Because you can represent invalid strings: just leave them as-is and don't try to decode them unless you have to. Sure, you can't decode them as code points, but that's actually a pretty unusual thing to do. If someone asks for decoding, _then_ you can give an error

How is that better than just handling paths as `bytes`?

There are no comments on this comment yet.