You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I've been trying to generate C40 encoded data matrices lately and I've noticed that in some particular cases, ZXing doesn't encode the data matrix the same way as other tools. The difference happens in the handling of the end of data when there are only 2 C40 values to be encoded.
ZXing unlatches and encodes the end in ASCII, unless there are only 2 symbol characters remaining. In that case it encodes the two remaining C40 values followed by a pad C40 value of 0 (Shift 1)
Both are perfectly decodable but yield in different data matrix aspect.
You can reproduce this behavior with any code of length (n * 3 + 2), e.g "ABC12345" in a large enough data matrix.
ZXing:
Online Tool:
An interesting thing is that when there is only 1 C40 value left to be encoded, all the tools I've been using and ZXing unlatch and encode the end in ASCII.
Has anybody faced the same issue? Which of the two implementation follows the specifications?
Thanks in advance
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I've been trying to generate C40 encoded data matrices lately and I've noticed that in some particular cases, ZXing doesn't encode the data matrix the same way as other tools. The difference happens in the handling of the end of data when there are only 2 C40 values to be encoded.
Both are perfectly decodable but yield in different data matrix aspect.
You can reproduce this behavior with any code of length (n * 3 + 2), e.g "ABC12345" in a large enough data matrix.
ZXing:
Online Tool:
An interesting thing is that when there is only 1 C40 value left to be encoded, all the tools I've been using and ZXing unlatch and encode the end in ASCII.
Has anybody faced the same issue? Which of the two implementation follows the specifications?
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions