this post was submitted on 17 Apr 2024
1349 points (99.5% liked)

Programmer Humor

19171 readers
1475 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 
top 16 comments
sorted by: hot top controversial new old
[–] apoisel@discuss.tchncs.de 121 points 5 months ago (5 children)

These errors were much more common before Unicode encodings were in broad use. Unicode pretty much solved this.

[–] davidgro@lemmy.world 53 points 5 months ago (1 children)

Still happens for new emoji on old OSs, or just missing characters in the font being used.

[–] Vilian@lemmy.ca 6 points 5 months ago

exacgly today these errors is always because some old emojis

[–] wizardbeard@lemmy.dbzer0.com 19 points 5 months ago (1 children)

Only if it's enabled by default, or the dev knows to enable it.

I had a lot of weird problems processing some info with names in Powershell until I found out that Powershell doesn't default to unicode format when shoving output into files. You can easily specify the encoding, but if you don't it replaces any non-ascii characters with "?" by default, so it's not even immediately obvious that there's an incorrect character, as it just silently substitutes a valid one.

[–] vox@sopuli.xyz 1 points 5 months ago

it uses big-endian utf-16 with BOM by default unless you upgrade to PowerShell 7

[–] fibojoly@sh.itjust.works 5 points 5 months ago

I like your enthusiasm. I remember when I believed the same. The last 16 years have clearly shown this is not the case.

[–] Norgur@fedia.io 4 points 5 months ago (1 children)

No it hasn't. It has just pushed them out of sight for English natives.

[–] apoisel@discuss.tchncs.de 28 points 5 months ago

Can't confirm that. In the 90s encodings were a nightmare. ISO-8859-1, ISO-8859-15, CP1252, IBM850, ... If you tried to build a website with an upload form, you'd get the most bizarre encodings and there was no way to reliably distinguish them. I'm not an English native, my world is full of umlauts and s-z ligatures. Things got A LOT better in the last years, thanks to Unicode encodings.

[–] PoolloverNathan@programming.dev 2 points 5 months ago

Still needs to be widely used. It took me about an hour to figure out that my encoding issues were because of Vim being in latin1, another to figure out how to change that, and a third to realize that screen also wasn't in UTF-8 mode.

[–] FreshLight@sh.itjust.works 80 points 5 months ago

It's like... WE , the viewers have the wrong encoding. Only we don't know how the owner of the sticker feels about Unicode. They themselves know exactly how they feel about it.

I like that.

[–] WhereGrapesMayRule@lemmy.world 39 points 5 months ago (1 children)

I would have sex with this bumper sticker.

[–] Imgonnatrythis@sh.itjust.works 22 points 5 months ago (1 children)

Sir, This is a Wendy's parking lot.

[–] WhereGrapesMayRule@lemmy.world 10 points 5 months ago (1 children)

You're just making it worse.

[–] DreadPotato@sopuli.xyz 2 points 5 months ago

You're just making it ~~worse~~ better.

[–] lugal@sopuli.xyz 11 points 5 months ago
[–] LinearArray@programming.dev 6 points 5 months ago

We have a love & hate relationship with unicode.