1123
you are viewing a single comment's thread
view the rest of the comments
[-] Nomecks@lemmy.ca 2 points 1 year ago* (last edited 1 year ago)

Probably have to escape it so it will work properly: John\/nDoe

[-] Andromxda@lemmy.dbzer0.com 32 points 1 year ago* (last edited 1 year ago)

\n already is an escape sequence, consisting of \, the escape character, and n, the code that is responsible for the new line. Together they form an escape sequence.

[-] Bldck@beehaw.org 5 points 1 year ago

This person unicodes

[-] Nomecks@lemmy.ca 1 points 1 year ago* (last edited 1 year ago)

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 post was submitted on 16 Nov 2024
1123 points (100.0% liked)

Programmer Humor

27542 readers
273 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 2 years ago
MODERATORS