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

QR-Code encoding in UFT-8

Dear all,

Last month, we licensed your component “QR Code Font and Encoder”, using it within Crystal Reports XI R2. Referring to your sample documentation, we have added the following programming code (using the byte mode to encode the strings):

stringVar DataToEncode:=”Our content”;
stringVar CompleteBarcodeString:="";
numberVar i:=0;
numberVar Segments:= IDAutomationQRCodeEncoderQRSet(DataToEncode,0 ,0 ,0 ,0 );
For i:=0 to Segments Do
(
CompleteBarcodeString := CompleteBarcodeString + IDAutomationQRCodeEncoderQRGet(i);
);
CompleteBarcodeString

The resulting QR codes seem to be perfectly valid, however, some hardware scanners as well as scanner apps for Android/iOS are having problems decoding German umlauts (displaying some random characters instead). We have already done some research on the Internet and apparently, the QR code component uses the ASCII extended set (0 – 255) to encode umlauts.

We have also run some additional tests using several QR code generators from the Internet that support UTF-8 encoding. The resulting QR codes did not include the problems mentioned above when using umlauts on the same set of hardware/software scanners.

Is there a way we can ensure that the QR code component uses UTF-8 to encode strings?

Kind regards,
Daniel


04-18-12     12.4 year(s) ago    

  Report Abuse

 

Ben

Best Answer

To properly encode UTF-8 characters, they must first be converted into a string of bytes and then encoded in the byte encoding mode. IDAutomation offers built-in functionality for many products that can do this for you, including the Crystal Reports Font Formula. More information is provided in the UTF-8 Unicode Encoding FAQ. The UFL is a legacy product and it does not encode UTF8.

Posted 12.4 year(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 (4)
I do not know. But I do know that the component and encoders that were created by IDAutomation follow the specification for the symbology.

Posted 12.4 year(s) ago

(0)
(0)
   Report Abuse
But then one question still remains, which is why the QR codes that have been encoded using a different encoder actually work on all scanners.

Kind regards,
Daniel

Posted 12.4 year(s) ago

(0)
(0)
   Report Abuse
The encoder will encode it in bytes but it is up to the scanner to decode it as the extended characters--this is how it should actually be by design.

Posted 12.4 year(s) ago

(0)
(0)
   Report Abuse
Dear all,

Thank you very much for your quick response. We are already using byte encoding to generate the QR-Codes. However, the problem is that we cannot access or write specific code for any of the scanners as our software is supposed to work with just any (or at least almost any) scanner as this is completely up to the customer.

Therefore, please let me dig a little deeper in order to make sure we get this right:
We encode our strings within Crystal Reports with the "QR Code Font and Encoder". The resulting QR code does work with some scanners, others won't recognize umlauts.

We, therefore, did some tests using another QR Code encoder (which apparently has a dedicated UTF-8 mode). These QR codes were then recognized by all scanners.

The question, therefore, is: does the "QR Code Font and Encoder" support UTF-8 at all? If so, how can we force the encoder to use UTF-8?

Kind regards,
Daniel

Posted 12.4 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