Closed mkjsix closed 7 years ago
The _ character is not accepted by the UNOA character set, you should use this instead:
parser.encoding('UNOC');
The parser doesn't automatically switch encodings when encountering an UNB segment, so if you want to handle multiple encodings, you should set the encoding in a segment
listener.
Thank you @tdecaluwe
I'm trying to parse a DATEX I EDIFACT message, but I receive the following error:
I'm using node v4.6.2. Here is my little main.js script:
I suspect the parser doesn't like the underscore found in
ART_T
, in this line:UNB+UNOC:3+ITVIA+ART_T+160215:0000+10714337
Unfortunately the source format is not under my control, so I need to parse these as they are.