Re:I couldn't debug the code because of my name
by account42 on Thursday October 21, 2021 @09:54AM
(#28944407)
But WTF-16 paths can be converted to WTF-8 just fine. You can even use the same algorithm, just only pair surrogates if they are matching an otherwise interpret them as UCS-2 values and encode those normally to "UTF-8".
Paths are UTF-16 + unpaired surrogates, so a Windows path isn't legally representable in UTF-8.