Re:Mimic – abusing Unicode to create tragedy
by creshal on Friday October 23, 2015 @06:46AM
(#10437795)
They share the place with coding blogs that use instead of spaces for code snippets.
[ Parent
| on HN ]
Re:Mimic – abusing Unicode to create tragedy
by minikomi on Friday October 23, 2015 @06:54AM
(#10437817)
Or “real” quotes in code examples..
Re:Mimic – abusing Unicode to create tragedy
by scintill76 on Friday October 23, 2015 @07:20AM
(#10437892)
Or en-dashes instead of double hypens for command line flags... I can feel my blood pressure rising just thinking about it.
Re:Mimic – abusing Unicode to create tragedy
by jimbokun on Friday October 23, 2015 @09:17AM
(#10438349)
Hah, I was giving a presentation where I was running little queries as part of a demo. I had copied the queries into the presenter notes in PowerPoint, then pasted them one at a time into a web app to run them.
Couldn't figure out why one of them wasn't working, and it was actually an audience member who figured out PowerPoint had turned a quote character into a "smart quote".
Re:Mimic – abusing Unicode to create tragedy
by TorKlingberg on Friday October 23, 2015 @08:45AM
(#10438212)
I don't think people do this intentionally. Either the code snippet has passed through MS Word (why?) or their blog tool is being "helpful".
I once had to do a team project with another student who did all his coding in Wordpad, god knows why. His indentation was more or less random. I wanted to murder him.
Re:Mimic – abusing Unicode to create tragedy
by harryc2011 on Friday October 23, 2015 @10:47AM
(#10438886)
It happens if you paste the code into an Outlook email (which used Word as the rendering engine IIRC)
Re:Mimic – abusing Unicode to create tragedy
by nommm-nommm on Friday October 23, 2015 @06:04PM
(#10441508)
Emailed code snippets have this problem when emailed using some email clients (Outlook, looking at you)
Re:Mimic – abusing Unicode to create tragedy
by zaptheimpaler on Friday October 23, 2015 @07:49AM
(#10437976)
Damn you Google docs! they also do this :(
Re:Mimic – abusing Unicode to create tragedy
by ciupicri on Friday October 23, 2015 @07:10AM
(#10437858)
I've had to use a couple of times in order to get a proper indentation. I know there's <PRE> and <CODE>, but they aren't allowed on every blog, so I had to improvise.