Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library

Comment by frollogaston

5 months ago

Seems obvious, ASCII had an unused bit, so you use it. Why did they even bother with UTF-16 and -32 then?

2 comments

frollogaston

Reply

int_19h  5 months ago

Because the original design assumed that 16 bits are enough to encode everything worth encoding, hence UCS2 (not UTF-16, yet) being the easiest and most straightforward way to represent things.

  • frollogaston  5 months ago

    Ah ok. Well even then, you end up spending 16 bits for every ASCII character.

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities