I have a question about EDI document (either x12 or edifact format),
Does anyone know that can it contain a NUL (0x00) character inside?
Since I am implementing an EDI parser and parsing terminates once it encounters NUL char.
yes, of course it can.
in edifact, there are character sets, eg UNOA, UNOB, UNOC.
0x00 is not part of UNOA, but it is part of UNOC (AFAIK).
x12: I am not sure. They have rules, but AFAIK not well followed.
btw, for an open source edifact/x12 parser see: http://bots.sourceforge.net
yes, of course it can. in edifact, there are character sets, eg UNOA, UNOB, UNOC. 0x00 is not part of UNOA, but it is part of UNOC (AFAIK). x12: I am not sure. They have rules, but AFAIK not well followed. btw, for an open source edifact/x12 parser see: http://bots.sourceforge.net