bytes vs. characters
bytes vs. characters
Posted Apr 23, 2015 22:30 UTC (Thu) by marcH (subscriber, #57642)In reply to: bytes vs. characters by dlang
Parent article: Report from the Python Language Summit
They are invalid if you decide that they are supposed to be in some encoding and some filename uses any *other* encoding. Then garbage gets displayed: for real.
https://en.wikipedia.org/wiki/Mojibake (search page for "garbage")
It's less rare with removable media or ID3
https://en.wikipedia.org/wiki/ID3 (search page for "mojibake")
> the spec allows them to be a string of bytes (excluding null and /), no encoding is required.
As far as filenames are concerned, you meant: *the lack of* a spec.
http://www.dwheeler.com/essays/fixing-unix-linux-filename... (search page for... "garbage")
> no encoding is required.
Which command do you typically use instead of "ls"? hexdump?
