Skip to content

Barcode scanning fails with "Unknown encoding" for ISO-8859-1 encoded data matrix #218

Open
@dspoeri

Description

@dspoeri

The official German medication plan data matrix ("BMP", Bundeseinheitlicher Medikationsplan) expects data to be encoded with ISO-8859-1. If the data contains a German umlaut, Google Vision barcode scanning fails with an "Unknown encoding" error.

Scanning the following data matrix reproduces the bug:
barcode

This bug sadly renders Google Vision barcode scanning useless for the mentioned use case.

Two suggested solutions:

  • accept other encodings than ASCII and UTF-8
  • provide access to the raw data through a byte array

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions