TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

ASCII vs. UTF-8 vs. UTF-16 vs. UTF-32

4 pointsby moutansosalmost 2 years ago

2 comments

tsukikagealmost 2 years ago
&quot;IBM z&#x2F;OS on mainframes used a character set called EBCDI&quot;<p>&quot;Each ASCII character is 8 bits wide, or one byte. The result of this means that if each bit is either a 1 or a 0 that there are only 128 possible combinations&quot;<p>&quot;it uses two chunks of 2 bytes, instead of 4-byte chunks in UTF-8&quot;
chaimanmeowalmost 2 years ago
does ascii have one of the bits reserved for parity check? This part confuses me:<p>&quot;Each ASCII character is 8 bits wide, or one byte. The result of this means that if each bit is either a 1 or a 0 that there are only 128 possible combinations of ASCII characters.&quot;<p>If all 8 bits are used for data there should be 255 possible combinations.
评论 #36310898 未加载