Skip to main content
added 6 characters in body
Source Link
Digital Trauma
  • 73k
  • 1
  • 22
  • 39
$ printf 😀 | wc
       0       1       4
$ 

Its 11 character and 44 bytes (as the other answers point out). Certain

Certain applications (generally those dealing with fixed-width fonts, e.g terminals and text editors) choose to display such characters over the space of 2 "normal" characters.

But character rendering by specific apps has nothing to do with byte/character count, especially for the purposes of .

$ printf 😀 | wc
       0       1       4
$ 

Its 1 character and 4 bytes (as the other answers point out). Certain applications (generally those dealing with fixed-width fonts, e.g terminals and text editors) choose to display such characters over the space of 2 "normal" characters.

But character rendering by specific apps has nothing to do with byte/character count, especially for the purposes of .

$ printf 😀 | wc
       0       1       4
$ 

1 character and 4 bytes (as the other answers point out).

Certain applications (generally those dealing with fixed-width fonts, e.g terminals and text editors) choose to display such characters over the space of 2 "normal" characters.

But character rendering by specific apps has nothing to do with byte/character count, especially for the purposes of .

Source Link
Digital Trauma
  • 73k
  • 1
  • 22
  • 39

$ printf 😀 | wc
       0       1       4
$ 

Its 1 character and 4 bytes (as the other answers point out). Certain applications (generally those dealing with fixed-width fonts, e.g terminals and text editors) choose to display such characters over the space of 2 "normal" characters.

But character rendering by specific apps has nothing to do with byte/character count, especially for the purposes of .