this post was submitted on 16 Nov 2024
1029 points (99.2% liked)
Programmer Humor
19586 readers
1030 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 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Easy,
John\nDoe
Probably have to escape it so it will work properly: John\/nDoe
\n
already is an escape sequence, consisting of\
, the escape character, andn
, the code that is responsible for the new line. Together they form an escape sequence.Sure, but if you don't escape the \ then you likely won't even be able to get the name into the first system. You need the name to contain \n so that it gets passed correctly to other systems, otherwise his name may wind up just being "John" .
This person unicodes