this post was submitted on 03 Apr 2025
394 points (99.7% liked)
Programmer Humor
22219 readers
987 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
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
That's true yeah. The seed of all the problems is assuming.
My teammates assumed System.DefaultEncoding must be some default value (UTF-8, they assumed, again) that would carry across all servers so no worries. Except no, it's "whatever encoding is configured on this machine as the default code page".
Which was the same across our networks, lucky them.
But for this one machine setup by an external contractor who had UTF-8 as default.
That one took me a while to track down...