The problem I am facing:
I need to scan barcodes which are in ISO 8859-1 (latin1) format. However, the rawValue property of the Barcode class has already been encoded using UTF-8 and contains some replacement characters (�). Consequently, I am unable to determine what the actual value of the data was.
Proposed Solution:
Add a rawBytes property to the Barcode class - populate this property using getRawBytes on Android and rawData on iOS. Then, in cases that the barcode follows formats other than UTF-8, rawBytes can be used with the applicable format.
Some problems which are similar to this (even though they are on different projects):
If there is a better solution to this problem I really would like some help.
The problem I am facing:
I need to scan barcodes which are in ISO 8859-1 (latin1) format. However, the
rawValueproperty of theBarcodeclass has already been encoded using UTF-8 and contains some replacement characters (�). Consequently, I am unable to determine what the actual value of the data was.Proposed Solution:
Add a
rawBytesproperty to theBarcodeclass - populate this property usinggetRawByteson Android andrawDataon iOS. Then, in cases that the barcode follows formats other than UTF-8,rawBytescan be used with the applicable format.Some problems which are similar to this (even though they are on different projects):
If there is a better solution to this problem I really would like some help.