News for hackers. Stuff that matters.
Re:What If C++ Abandoned Backward Compatibility? by BiteCode_dev on Sunday March 29, 2020 @06:22AM (#22717771)
I failed to mention that it's only useful to do this manually if you need to decode path with mixed encodings, or share said path with the rest of the world.

If all you need is to work with arbitrary mixed bags of file names, you can just pass "str", and Python will use automatically and transparently surrogateescape everywhere.

There are no comments on this comment yet.