Issue reading barcode content in EMDK Xamarin

// Expert user has replied.
R Rakesh R Nair 2 years 7 months ago
2 4 0

In my barcode contains a Norwegian character (Ålesund). But while scanning it on the Zebra device I am not getting the letter (Å) instead I am getting something like this (�lesund).

The configuration that I am following the app is,
if (null != _mScanner)
{
if (_mScanner.IsEnabled && !_mScanner.IsReadPending)
{
//EMDK: Configure the scanner settings
var config = _mScanner.GetConfig();
if (null != config)
{
config.ScanParams.DecodeLEDFeedback = true;
config.DecoderParams.Code39.Enabled = true;
config.DecoderParams.Code93.Enabled = true;
config.DecoderParams.Code128.Enabled = true;
config.DecoderParams.Ean8.Enabled = true;
config.DecoderParams.Pdf417.Enabled = true;
config.DecoderParams.I2of5.Enabled = true;
_mScanner.SetConfig(config);
}
}
}

The barcode type is pdf417

Please Register or Login to post a reply

4 Replies

J James Swinton-Bland

Hi,

You can use the character set selection api (https://techdocs.zebra.com/emdk-for-android/8-0/api/reference/com/symbo…) and set it to ISO-8859-1 which should decode the Å for you.

R Rakesh R Nair

Hi Could you please let me know how I can set the CharacterSet? I cant find the method that accept this

J James Swinton-Bland

Should be something like this:

ScannerConfig scannerConfig = new ScannerConfig();
scannerConfig.readerParams.readerSpecific.imagerSpecific.characterSetSelection = CharacterSet.ISO_8859_1;

 

R Rakesh R Nair

Wow...! that was a life saver. Thanks a lot James. It is working

CONTACT
Can’t find what you’re looking for?