And I would be the one biting that bait hard because mojibake are like a pet peeve of mine.
Programmer Humor
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
[object Object]
use %20 randomly for fun
Or just use MIME (e.g. =20). Guaranteed to make someone say "okay, how the hell did that happen?"
(It's also trendy because badly cleaned up MIME garbage is in the Epstein files!)
my favorite thing to do is go to small town websites and look at the page source for their forms. 70% of the time they have inputs commented out to "disable" forms or just deprecated functionality.
I like to uncomment them and submit the forms just to fuck with them 🤣
I was applying to a job recently, and their online form had a "Upload your documents here" field. Problem was, the input was set to only accept a single file. Well, I wanted to upload two, so I just went into the html and added "multiple" to the input. Which just worked, I even checked the network tab to confirm that both files were submitted.
Haven't heard back from that company yet. It was a web dev position so I hope they appreciate my hijinks 🤞
Always include a % in your song titles to crash car music player software that uses sprintf. (h/t to Dave P)
Allow me to make one thing perfectly clear: If you insert those symbols into my perfectly working website... only to mess with me and inadvertently give me vietnam-style flashbacks to the days when I had to deal with incredibly badly formed and misencoded CSV-files on the daily...
Then I will find you and break into your home to replace every second sock with one of the same color and pattern but slightly different make, size or material and you will always wonder why you can't find any exactly fitting pairs of socks anymore.
I willingly embraced mismatched socks years ago. I just pretend it's a fashion statement. Come at me bro.
I always buy identical socks, cannot mismatch if they are all the same.
I started buying all the same sock type, but some might have a little gray or a little brown in the variation, and I dont care, I mix/match.
If one gets a hole its just one of many and is tossed.
I buy colorful, patterned socks of all kinds. Mostly they stay together, but if not, it's fun to pick new partners.
ooh, so it was you then!! 😠

My day has come!!!
Don't sanitise inputs. Reject non-conforming inputs entirely.
But otherwise: yes.
No fuck both of those, just use prepared statements so user input can't be interpreted as SQL.
To the op of the screenshot meme, calm down satan
Allow me to introduce you to my favorite Unicode character, the zero width space
Unfortunately, evil people blacklist this character a lot :(
May I introduce you to my favorite Unicode character, the Braille zero dots
that sounds awesome! (there's 10k zero width spaces between the quotes ->''.)

thats a 29kb comment right there
I'll be damned. The crazy son of a bitch did it!
Odd, on the Connect app it shows a bunch of spaces, but not 10k of them.
Checks out:

Unless they work for Microsoft. Teams has been showing � instead of ä for the caller's name in the popup when someone calls for several weeks now. It didn't use to do that before. I don't think they care anymore.
I don't think it's even "they" any more.
Usually only happened when a French person copied and pasted their text directly from a Word document... dang weird spaces and accented characters... drove my boss mad when I told him it was because it French, and not a glitch.
Still had to work around it... text counters in textboxes had to account for accented characters, which took two bytes instead of one.
"I only have 2000 letters!" ... 2000 including 200 accent characters made it 2200 characters, not 2000.
I remember one day long ago when Notepad++ was the real shit, I was using the vertical selection feature and noticed that the selection was shorter on lines that had accented characters. I thought: "huh, accented characters count as two? What would happen if the selection ended in one? Can I select half a character?" no I could not and I had to restart my computer after trying.
“I only have 2000 letters!” … 2000 including 200 accent characters made it 2200 characters, not 2000.
Or, you could count it in Unicode characters, and not in whatever bizarro charset you're using over there. Then "À" is one character, just as it's supposed to be.
The problem typically comes from improper conversion between charsets. Like Windows-1252 to Unicode, or something equally horrible.
I was basically calculating in Javavscript then in PHP for validation before I sent it to Zoho.
The DB also was fine. It was honestly just PHP and Javascript. It's all good now though!