Do all CSV file exports in ServiceNow include LF (Line Feed) only and exclude CR (Carriage Return)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2023 01:27 PM
Good day to all.
Something I noticed which is peculiar and that is ServiceNow appears to create CSV files with only LF (Line Feed) on each line, as opposed to CRLF or CR. There is no CR (Carriage Return) to be found. Now, as some may know, you'll find LF produced on most *nix platforms but there are some, even under the Apple brand, where you might see just CR. And Windows systems typical behavior is CRLF.
Even excluding the underlying OS, it's a file. The developer could write the CSV file however they please, i.e. CRLF on a Unix OS, LF on a Windows OS.
The issue is not that ServiceNow is only using LF in CSV files. It's more of a question of is that a consistent practice of ServiceNow's and we shouldn't expect that format to change for CSV files anytime soon, would that be fair to say?