Closed v0-v0-git closed 2 months ago
As far as I understand, in GS1 text, extra parentheses should be encoded using ^040 (left parenthesis) and ^041 (right parenthesis).
You require the parse
option. Refer to the documentation:
https://github.com/bwipp/postscriptbarcode/wiki/GS1-Application-Identifier-Standard-Format
Thanks, I use this option and option parsefnc right away, but there is an error
datamatrix = generate_barcode( barcode_type='gs1datamatrix', data=data, options={"parsefnc": True} )
Wrong project. This is not BWIP-JS, and those options work in BWIPP.
If the character string contains ")" or "(" an error occurs when generating the datamatrix.
'''Error creating DataMatrix: bwipp.GS1unknownAI AI GdU(91: Unrecognised AI
Process finished with exit code 1'''
As far as I understand, in GS1 text, extra parentheses should be encoded using ^040 (left parenthesis) and ^041 (right parenthesis).
If I replace them with characters ^040 and ^041, then there is still an error: '''Error creating DataMatrix: bwipp.GS1badCSET82character AI 21: Invalid CSET 82 character
Process finished with exit code 1'''