You are evil
Programmer Humor
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.
Why is it that whenever something is spitting out junk data, those specific characters are involved?
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.
� 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).
[object Object]
Seeing this actually sent a small wave of dread through my body
When I see �, I just assume the user or another dev is using a non-standard keyboard, or my fonts aren't up to date
When I see this shit, I lose all blood flow to the brain and then just collapse
Wdym? flamingo_pinyata's explaination was quite useful, I wish somebody had told me that long ago and it's still going to let me save so much time.