What's the best separator/delimiter character(s) for a plaintext db file?

Meng Lu picture Meng Lu · Jun 12, 2011 · Viewed 66.4k times · Source

What's the best separator/delimiter character(s) for a plaintext db file?

I considered using |, ,, <TAB>, ;, etc. But they all seem to be possible to break when the nearby entries have special enough characters.

So, the experienced database users, what delimiter character(s) do you suggest to use?

Answer

Michas picture Michas · Apr 23, 2015

Well, there are few separator characters in US-ASCII, hex 1c, 1d, 1e and 1f. The plain text shouldn't contain them.

1c  FS  ␜  ^\  File Separator
1d  GS  ␝  ^]  Group Separator
1e  RS  ␞  ^^  Record Separator
1f  US  ␟  ^_  Unit Separator