Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

unable to parse barcode

Aperta
#592 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
30/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
csharp
Ambito
backend

Direzione di ricerca

The report concerns GS1-128 output from the CODE_128 writer when the GS1_FORMAT hint is set and two application identifiers are concatenated with FNC1 separators. Start with the writer's GS1 handling for Code 128 and check the generated string for FNC1 placement between AI (15) and AI (10). Done means a barcode with two AIs decodes correctly. The issue never states the expected output or a failing test, so confirm the intended behaviour with the maintainer first.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

i have the problem that my scanner can't parse a barcode that contains two application identifiers. The barcode i generated for a sscc works fine, but it only contains one application identifier.
here is a snippet from my code. maybe i am using the library wrong?

private static char _fnc1 = (char)29;
public static Bitmap GenerateBestBeforeBatchId128EAN(string bestBeforeDate, string batchId)
{
    string debug = $"{_fnc1}(15){bestBeforeDate}{_fnc1}(10){batchId}";
    Logger.WriteDebugLog(debug);
    
	BarcodeWriter barcodeWriter = new BarcodeWriter
	{
		Format = BarcodeFormat.CODE_128,
		Options = new EncodingOptions
		{
			Width = _barcodeWidth,
			Height = _barcodeHeight,
			Margin = _margin,
			// controls if the content string appears in the output img
			PureBarcode = false
		}
	};
	barcodeWriter.Options.Hints[EncodeHintType.GS1_FORMAT] = true;
	return barcodeWriter.Write(data);BarcodeWriter barcodeWriter = new BarcodeWriter
	{
		Format = BarcodeFormat.CODE_128,
		Options = new EncodingOptions
		{
			Width = _barcodeWidth,
			Height = _barcodeHeight,
			Margin = _margin,
			// controls if the content string appears in the output img
			PureBarcode = false
		}
	};
	barcodeWriter.Options.Hints[EncodeHintType.GS1_FORMAT] = true;
	return barcodeWriter.Write($"{_fnc1}(15){bestBeforeDate}(10){batchId}");
}
Lingua principale
C#
Stelle
3.1k
Fork
704
Merge medio
13g 17h
PR unite (30g)
2

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di micjahn/ZXing.Net

Tutte le issue di micjahn/ZXing.Net

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.