834 B
834 B
Data Interchange Format
Files starting with TABLE
followed by a newline marker followed by 0,1
should be interpreted as DIF.
There exists a technical specification from 1983.
Encoding
The specification includes a Pascal procedure for reading a string. There is an error in handling double quotes:
if str[1] = '"' { strip quotes }
then begin
delete (str, 1, 1);
delete (str, pos('"', str), length(str) - pos('"', str) + 1)
end
It does not correctly handle "
characters in strings. Writers should use ""
(similar to CSV encoding). The following DIF snippet represents "
:
1,0
""""