New User? Sign Up  |  Sign In  |  Help
Barcode support and
tutorials from IDAutomation
and the community.
Click for the BBB Business Review of this Computers Hardware, Software & Services in Tampa FL
Resolved Questions

Incorrect Decode of ECI ShiftJIS Encoded QR Code

A customer has reported an issue with us for a QR Code decode issue. Our customer is moving from a legacy system to our system and they require the same type of encode/decode as their previous system. We do not have visibility into the other solution, only the QR Code output that they've sent. Note that this is related to the scanner because most scanners do decode properly. However, the scanner in use at the customer site decodes incorrectly.

I have attached a photo of the scanner showing the incorrect decode (IncorrectDecode.png). The scanner prepends ¥000026 to the data where it should not. This appears to be ECI data that is decoded into the data. The affected bar code is attached (CausesBadDecode.png).

I am also enclosing an image that shows a bar code that decodes correctly from their legacy system.

From everything that we can gather, it appears that the scanner needs to have the data encoded in ShiftJIS. This does not appear to be supported in the QR Code Java library. We are asking for assistance in verifying that the issue is caused by the symbol not being encoded in ShiftJIS and if that is the case to add support for ShiftJIS.

Operating System: Agnostic

Application: Java Application
Attachments:

10-31-23     1 year(s) ago    

  Report Abuse

 

Brant

Best Answer

ECI (Extended Channel Interpretation) has been released and it has been added to the Java QR Code Generator download. You may receive this latest version by purchasing a license for the software. If you own a license to the product, purchase the Level 2 Support Subscription to receive download access.

Posted 344 day(s) ago

(0)
(0)
  Report Abuse
 
Find Interesting
 
Email to Others
 
Bookmark
 
Subscribe to Answer Alert
No comments yet.     Be the first to comment.
Other Answers (2)
I have uploaded the first RC of this product. It is the ZIP attached, Java QR Code with Multiple ECI RC 1.zip
To encode ECI, use the tilde, for example:
~E026字体и条Ш€
The only scanner we know of that can scan ECI is the "Code Scanner" in the latest iOS.

Posted 351 day(s) ago

(0)
(0)
   Report Abuse
I'm not certain why it would encode the ECI. Here's the code that we use to create the symbol with comments removed and a little bit of redaction.

// barCodeFormat = an object with getters/setters to get the parameters needed to create the symbol.

// returns data as a String, for example, "X229001___1031772234FEI30 BH-2 FEI30 20230330X 240.000CN "
String encodeData = this.getBarcodeData(barcode, null);

QRCode bc=new QRCode();
bc.setName(barcode.getName());
bc.setAutoSize(false);
bc.setSize(bc.getPreferredSize());

bc.setDataToEncode(encodeData);
bc.setLeftMarginCM(0);


String correction = barCodeFormat.getErrorCorrection();
bc.setErrorCorrectionLevel(correction);

if(barCodeFormat.getSymbolSizeType() != null) {
bc.setVersion(barCodeFormat.getSymbolSizeType().getVersion());
}
else {
bc.setVersion(QRCodeSymbolSizeDefsEnum.SYMSIZE_AUTO.getVersion()); // Size of the symbol - 0 is auto detect.
}

// encodingMode = enumeration of encoding modes corresponding to the values QRCode expects
bc.setEncodingMode(encodingMode.getType());

setScaledResolution(bc, resolution, documentResolution, barCodeFormat.getXdim(), barCodeFormat);

bc.setTopMarginCM(0.0);

BufferedImage image = generateImage(bc, scale, barCodeFormat, encodeData, resolution);
return image;

Posted 1 year(s) ago

(0)
(0)
   Report Abuse
Email this question link to friends
You must enter an email address, if name is entered or vice-versa for each friend.
Friend #1 -
Friend #2 -
Friend #3 -
Friend #4 -
Friend #5 -
  Your comment on this question
  |         |  
bold  italic  underline  strike       big  small       superscript  subscript 
  Allows to add a link. Added links would only be converted to actual clickable link, when the domain of the link is white-listed by administrator.
Caption :
Link URL :
(Must starts with "http://")
Add  |   Cancel
  Allow to insert an image. Must be among the following file types - *.jpg, *.gif, *.png & *.bmp.
Image Url :   Upload New
(Image url must always starts with " http:// ")
Width : pixels
(Must not be greater than 450px. Enter 0px for no resize)
Add  |   Cancel
  Allow to insert YouTube video. Insert the video embed code.
Embed Code :
Add  |   Cancel
Up to 5000 Characters are allowed. Current Count: 0
  Your comment on this answer
  |         |  
bold  italic  underline  strike       big  small       superscript  subscript 
  Allow you to add a link. Added links would only be converted to actual clickable link, when the domain of the link is white-listed by administrator.
Caption :
Link URL :
(Must start with "http://" or "https://")
Add  |   Cancel
  Allow to insert an image. Must be among the following file types - *.jpg, *.gif, *.png & *.bmp.
Image Url :   Upload New
(Image url must always start with "http://" or "https://")
Width : pixels
(Must not be greater than 450px. Enter 0px for no resize)
Add  |   Cancel
  Allow to insert YouTube video. Insert the video embed code.
Embed Code :
Add  |   Cancel
Up to 5000 characters are allowed. Current Count: 0

You may answer and comment on any thread according to the Terms and Conditions.

 © Copyright 2021 IDAutomation.com, Inc., All Rights Reserved. Legal Notices.

 Barcode Fonts | Components | Scanners | Support | Contact Us
Training Videos on YouTube Join us on Google Plus Join us on LinkedIn Follow us on Twitter Like us on Facebook