Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

X12: Problem with '>' #3

Open
adrianschlatter opened this issue May 26, 2021 · 0 comments
Open

X12: Problem with '>' #3

adrianschlatter opened this issue May 26, 2021 · 0 comments

Comments

@adrianschlatter
Copy link

I'm a big fan of datamatrix-svg, which is why I have been looking at it closely. And I believe I have found an issue with X12-encoding. Encoding messages including '>' often fails (but not always):

toText('A>', [/* X12*/ 238, 12, 8, 0,13, 9, 13, 31, 8, 0, 32, 9, 29, 41, 8, 0,42, 9, 41,47, 8, 0,  57, 9, 44, 64, 8, 0, 90, 9, 51, 255, 8, 0])
=> []

Other examples:

  • '>' => [238, 254, 63]
  • 'A>' => []
  • 'AB>' => []
  • 'ABC>' => [238, 89, 233, 254, 63]
  • 'ABCD' => []

I expect that all of these message encode to X12 without failure (failure = []) because 'ABCD>' all are valid X12 chars (source: Wikipedia).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant