this post was submitted on 06 Sep 2024
1386 points (99.6% liked)

Programmer Humor

32866 readers
599 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
(page 2) 9 comments
sorted by: hot top controversial new old
[–] [email protected] 40 points 4 months ago

You are evil

[–] [email protected] 241 points 4 months ago (9 children)

Be sure to use the image upload field too

load more comments (9 replies)
[–] [email protected] 75 points 4 months ago (3 children)

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

[–] [email protected] 69 points 4 months ago (2 children)

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.

load more comments (2 replies)
[–] [email protected] 102 points 4 months ago

� 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).

load more comments (1 replies)
[–] [email protected] 227 points 4 months ago (5 children)
[–] [email protected] 95 points 4 months ago (2 children)

Seeing this actually sent a small wave of dread through my body

[–] [email protected] 56 points 4 months ago

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

[–] [email protected] 59 points 4 months ago

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.

load more comments (4 replies)
load more comments
view more: ‹ prev next ›