4 ms·
I wondered that too for a while as well. I then had two people on my team, one on windows and one on macos, and we discovered that macos (or something on the c
by freedomben 5y ago
I wondered that too for a while as well. I then had two people on my team, one on windows and one on macos, and we discovered that macos (or something on the computer) was converting those automatically.
macos (or some application(s) on macos) also seems to use a unicode version of double quotes " instead of the standard ascii one. I spent a ridiculous amount of time debugging a line in a shell script that had the unicode quotes instead of "normal" ones and broke in ways that were horrible to figure out. Eventually I discovered that he had composed the line in Slack and pasted it in. Definitely something to watch out for!
- david_allison 5y agoI've had the same problem with contributors corrupting JSON. For reference: TextEdit - Preferences - Disable 'Smart Quotes' and 'Smart Dashes'
- hombre_fatal 5y agoYou can do it at the OS level with Preferences -> Keyboard -> Text tab -> Uncheck "Use smart quotes and dashes".
- david_allison 5y agoThank you! Will let them know if this happens again
- kevin_thibedeau 5y agoThe quote problem has been a long standing issue since before Unicode became the dominant encoding. You will often see older web pages with mojibake caused by MacRoman encoding of smart quotes.
- mst 5y agoWe also used to have fun with MacOS' perldoc command rendering things cleverly and breaking copy-paste out of the documentation - this resulted in the "hilarious" code here: https://metacpan.org/release/HAARG/local-lib-2.000029/source/Makefile.PL#L79 https://metacpan.org/release/HAARG/local-lib-2.000029/source...