cm0002@lemmy.world to Programmer Humor@programming.dev · 2 days agoTell me the truth ...piefed.jeena.netimagemessage-square132fedilinkarrow-up11.13Karrow-down116
arrow-up11.11Karrow-down1imageTell me the truth ...piefed.jeena.netcm0002@lemmy.world to Programmer Humor@programming.dev · 2 days agomessage-square132fedilink
minus-squareIron Lynx@lemmy.worldlinkfedilinkarrow-up5·5 hours agoASCII was originally a 7-bit standard. If you type in ASCII, every leading bit is always 0. At least ASCII is forward compatible with UTF-8
minus-squarehouseofleft@slrpnk.netlinkfedilinkEnglisharrow-up3·8 hours agoAscii needs seven bits, but is almost always encoded as bytes, so every ascii letter has a throwaway bit.
minus-squareFuckBigTech347@lemmygrad.mllinkfedilinkarrow-up1·8 hours agoSome old software does use 8-Bit ASCII for special/locale specific characters. Also there is this Unicode hack where the last bit is used to determine if the byte is part of a multi-byte sequence.
what about them?
ASCII was originally a 7-bit standard. If you type in ASCII, every leading bit is always
0
.At least ASCII is forward compatible with UTF-8
Ascii needs seven bits, but is almost always encoded as bytes, so every ascii letter has a throwaway bit.
Let’s store the boolean there then!!
Some old software does use 8-Bit ASCII for special/locale specific characters. Also there is this Unicode hack where the last bit is used to determine if the byte is part of a multi-byte sequence.