The devil said, “Take this glyph-laden grimoire and try to render it cross-platform.”

a year ago by merari42 to c/programmer_humor

load all comments
KernelTale 32 points a year ago

It's just UTF-8

path: 0 16207545, hotness: undefined, score: 32, children: 7
darksiderbun 21 points a year ago

It's also UTF-8 with BOM. It's also windows western 1252. Dont get me started on international date time formatting and time assumptions :(

I wish it was just UTF-8

path: 0 16207545 16210003, hotness: undefined, score: 21, children: 2
syklemil 11 points a year ago

It's also some surprise internal representation as utf-16; that's at least still in the realm of Unicode. Would also expect there's utf-32 still floating around somewhere, but I couldn't tell you where.

And is mysql still doing that thing with utf8 as a noob trap and utf8_for_real_we_mean_it_this_time_honest or whatever they called it as normal utf8?

path: 0 16207545 16210003 16210271, hotness: undefined, score: 11, children: 0
khapyman 7 points a year ago

Me too. To this Day our national Electric invoice standard uses ISO-8859-15. An that's just fine until somebody feels the need to have a look with Notepad, add a random space and save the file.

Notepad then helpfully changes the encoding to UTF-16 and the whole patch errors out somewhere down the chain.

path: 0 16207545 16210003 16210234, hotness: undefined, score: 7, children: 0
programmer_humor
programmer_humor

@programming.dev

login for more options
32862
2487
7731

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

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

go to feed...