googlesamples / googlesamples/mlkit

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

Open
#218 8 comments 0 reactions 1 assignee Claimed by @zhouyiself View on GitHub
enhancement
Dominant language
Kotlin
Stars
4.3k
Forks
3.1k
PR merge metrics
No merged PRs in 30d

Description

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](https://user-images.githubusercontent.com/32055858/104132332-f700b180-537c-11eb-9bc6-09bb2760a690.png)

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.