r/ProgrammerHumor • • Sep 23 '19

Knowing how to code beforehand

Post image
7.6k Upvotes

264 comments sorted by

View all comments

Show parent comments

14

u/ParkerM Sep 23 '19

The MS Office suite is notorious for sneakily converting ASCII characters into their more readable/pretty Unicode versions.

e.g. "foo" becomes “foo”, -h becomes —h (hyphen gets converted to emdash), etc.
The hyphen one is especially fun because it's damn near indistinguishable depending on the font.

5

u/SubliminalBits Sep 24 '19

They'll keep looking pretty in all your unicode compatible editors too. One time I was so frustrated I looked at the raw string as hex, at which point everything seemed so obvious.

3

u/ThePyroEagle Sep 24 '19

At least it's not system-wide like OS X's smart quotes.