Text file with 0D 0D 0A line breaks

Viewed 142692

A customer is sending me a .csv file where the line breaks are made up of the sequence 0xD 0xD 0xA. As far as I know line breaks are either 0xA from Mac or Unix or 0xD 0xA from Windows.

Is the 0xD 0xD 0xA any known encoding? Is there any known sequence of savings that corrupts a file's line endings that causes this (I think the customer uses a Mac)?

The file doesn't start with any encoding markers, it starts with the text contents directly. The text is displayed correctly if opened with code page 1252.

6 Answers

I've seen this in text files produced by the Solidworks 3D CAD program. For example, if you export the equations of a model to a text file (default name is equations.txt), the line endings use 0x0D 0x0D 0x0A.

I'm sure it's a bug, but it is what it is.

These files (at least those produced by the 2019 version of the software) include the <0xEF, 0xBB, 0xBF> UTF-8 representation of the byte order mark as the leading encoding markers at the start of the file.

Related