Description
Hello Android-Vision Team,
I'm currently having a big problem with using the Barcode API. I need to scan Barcodes where the payload is an XML with ISO-8859-1 (Latin-1) encoded data. I used the Barcode Sample to verify that's not just an issue with the integration in our App but a general problem with the Library. Here are two examples of a Barcode. One is working and the other is not. It's due to the special characters (äöüß) within the payload.
It seems that the parser per default uses UTF-8 when creating the String from the parsed data. As long as there are no special charaters in it everything works fine. If the payload contains special characters (äöüß) they will be displayed not correct due to the wrong encoding.
That is tested on a Nexus 4 with Android 4.2.2
On a Nexus 6p with Android 7, the application crashes when there are special characters in the payload because the native method call throws an Exception in "NewStringUTF".
Is there a way to define the encoding of the payload or to just get the byte array instead of the Barcode object with the already encoded String?