D•Scribe
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
calebegg@lemmy.blahaj.zone to Programmer Humor@lemmy.ml · 10 个月前

Pure evil

lemmy.blahaj.zone

message-square
56
link
fedilink
1.4K

Pure evil

lemmy.blahaj.zone

calebegg@lemmy.blahaj.zone to Programmer Humor@lemmy.ml · 10 个月前
message-square
56
link
fedilink
  • IrateAnteater@sh.itjust.works
    link
    fedilink
    arrow-up
    76
    ·
    10 个月前

    Why is it that whenever something is spitting out junk data, those specific characters are involved?

    • Vent@lemm.ee
      link
      fedilink
      arrow-up
      101
      ·
      10 个月前

      � is used to represent an invalid character, so it makes sense that it’d appear often when bad data is being rendered (or good data is being rendered improperly).

    • ImplyingImplications@lemmy.ca
      link
      fedilink
      arrow-up
      70
      arrow-down
      1
      ·
      10 个月前

      Everything is 0s and 1s to a computer. What a pattern of 0s and 1s encodes is decided by people–often arbitrarily. Over the years there have been attempts to standardize encodings but, for legacy reasons, older encodings are still valid.

      The 0s and 1s that encode ’ in UTF-8 (a standardized encoding) are the same 0s and 1s that encode ’ in CP-1252 (a legacy encoding).

      The � symbol is shown when the 0s and 1s don’t encode anything of meaning.

      • x00za@lemmy.dbzer0.comBanned
        link
        fedilink
        English
        arrow-up
        56
        ·
        edit-2
        9 个月前

        Removed by mod

        • breakcore@discuss.tchncs.de
          link
          fedilink
          arrow-up
          14
          ·
          10 个月前

          Good to see it “spelt out” like that

    • JackbyDev@programming.dev
      link
      fedilink
      English
      arrow-up
      5
      ·
      10 个月前

      Right single quote (’) in UTF-8 (https://www.compart.com/en/unicode/U+2019) has the same bytes as ’ in cp1252 (which is more or less “ASCII” if we’re doing ELI5). https://en.wikipedia.org/wiki/Windows-1252

      Sometimes your keyboard or program’s settings will use right single quote for apostrophes instead of a normal apostrophe. ’ you might notice how this one is straight and not bent a certain way. This setting is often called smart quotes.

Programmer Humor@lemmy.ml

programmerhumor@lemmy.ml

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmerhumor@lemmy.ml

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 232 users / day
  • 883 users / week
  • 2.73K users / month
  • 9.83K users / 6 months
  • 9 local subscribers
  • 37.2K subscribers
  • 1.51K Posts
  • 22.2K Comments
  • Modlog
  • mods:
  • AgreeableLandscape@lemmy.ml
  • cat_programmer@lemmy.ml
  • UI: unknown version
  • BE: 0.19.12
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org