lindell / lindell/JsBarcode

RangeError: The encoding does not start with a start character.

Open
#374 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
5.9k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

Great lib!

I encountered that error when trying to generate a barcode with a legal character `Đ` which is part of Latin-1
`Đ000`
.. it could be supported via FNC4.

[Code_128 on wikipedia](https://en.wikipedia.org/wiki/Code_128#Using_FNC4_to_encode_high_(128%E2%80%93255)_characters)
[Code page layout](https://en.wikipedia.org/wiki/ISO/IEC_8859-1#Code_page_layout)

Other latin characters do the same, like `Á` .. which are very common in some languages.

Just a note. .)
Greetings, ...

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in the Code 128 encoding path and reproduce the reported `Đ000` and `Á` inputs. Review the linked Code 128 FNC4 guidance and ISO/IEC 8859-1 code-page reference, then verify that supported Latin-1 characters encode without the reported RangeError and that the existing barcode output remains valid.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
web-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.