An encoding for newline you’ve never heard of

By Adrian Smith18 Aug 2014200 words1 mins to read

A file recently turned up from an external partner. Our software was having problems parsing it. I opened it up in TextPad (text editor for Windows) and everything looked fine. Obviously I consider our software to be perfect so I was a little perplexed as how this file could be causing problems...

It turned out there were newline issues. Opening the file in a hex editor revealed the file used \n\n\r for newlines, i.e. 3 bytes.

I am amazed by (at least) the following facts:

This article was written by Adrian Smith on 18 Aug 2014

Follow me: Facebook | Twitter | LinkedIn | Email

More on: FAIL