1
0
Fork
You've already forked python-barcode
0

Extra character added in code39 #85

Open
opened 2020年08月18日 08:44:13 +02:00 by QuentinFarizon · 3 comments
QuentinFarizon commented 2020年08月18日 08:44:13 +02:00 (Migrated from github.com)
Copy link

Hello, and thanks for this very simple to use module !

When generating with code39, and reading the generated barcode with a qr code scanner, it renders with an additionnal letter at the end.

Eg : generating for "B504" produces "B504K"

import barcode
Code39 = barcode.get_barcode_class('code39')
code39 = Code39('B504')
code39.save('code39_barcode')

Produces :
image

Hello, and thanks for this very simple to use module ! When generating with code39, and reading the generated barcode with a qr code scanner, it renders with an additionnal letter at the end. Eg : generating for "B504" produces "B504K" ``` import barcode Code39 = barcode.get_barcode_class('code39') code39 = Code39('B504') code39.save('code39_barcode') ``` Produces : ![image](https://user-images.githubusercontent.com/33634848/90479407-ea11c600-e12e-11ea-95a6-af46ab55a566.png)
Vini-Dev-Py commented 2020年08月28日 21:42:37 +02:00 (Migrated from github.com)
Copy link

I have the same problem, does anyone have a solution?

I have the same problem, does anyone have a solution?
WhyNotHugo commented 2020年08月28日 22:02:47 +02:00 (Migrated from github.com)
Copy link

Looks like it's the checksum digit. Can you try:

import barcode
Code39 = barcode.get_barcode_class('code39')
code39 = Code39('B504', add_checksum=False)
# ^ Add this argument here
code39.save('code39_barcode')
Looks like it's the checksum digit. Can you try: ```python import barcode Code39 = barcode.get_barcode_class('code39') code39 = Code39('B504', add_checksum=False) # ^ Add this argument here code39.save('code39_barcode') ```
marcoaaguiar commented 2021年06月20日 17:54:16 +02:00 (Migrated from github.com)
Copy link

I believe this issue could be closed :)

I believe this issue could be closed :)
Sign in to join this conversation.
No Branch/Tag specified
main
pre-commit-ci-update-config
extensibility
fix_sizes
feature/longer_guard_bar
ean-without-checksum
readme-formatting
cleaning
cleanup
srolin/master
michieldwitte/left-alignment-fix
v0.13.1
v0.13.0
v0.12.0
v0.11.0
v0.10.0
v0.9.0
v0.8.3
v0.8.2
v0.8.1
v0.8.0
0.8beta1
0.7
0.7beta4
0.7beta3
0.7beta2
v0.6
v0.6b3
v0.6b2
v0.6b1
v0.5.0
v0.5.0b1
v0.4.3
v0.4.2
v0.4.1
v0.4
v0.4b2
v0.4b1
v0.3
v0.3b1
v0.2.1
v0.1
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
WhyNotHugo/python-barcode#85
Reference in a new issue
WhyNotHugo/python-barcode
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?