this post was submitted on 06 Sep 2024
1368 points (99.7% liked)

Programmer Humor

32020 readers
605 users here now

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

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 74 points 1 week ago (5 children)

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

[–] [email protected] 5 points 1 week ago

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.

load more comments (4 replies)