We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

UTF-8 Support in QR-codes?

Thread ID:

Created:

Updated:

Platform:

Replies:

130607 May 20,2017 07:41 AM May 25,2017 08:34 AM Xamarin.Forms 3
loading
Tags: PDF
Slobodan Babic
Asked On May 20, 2017 07:41 AM

As per documentation, QR barcode drawing to pdf accepts shift_jis encoding when InputMode is set to InputMode.Binary.

It seems to me that it would be a nice feature to have a support for utf-8 characters in QR codes.

As it is now, I am getting an exception if I try to pass some text containing an utf-8 characters...

I would be very grateful If someone can point me to a simple code for converting utf-8 string to shift_jis string in c# .net so I can pass resulting shift_jis string to Syncfusion.Pdf.Barcode.  I tried with System.Text.Encoding converting, but on my system there is no support for shift_jis (code page 932).
Thank you.

Gayathri Ramalingam [Syncfusion]
Replied On May 22, 2017 05:01 AM

Hi Slobodan, 
 
Thank you for using Syncfusion product. 
 
We regret to let you know that we could not reproduce the mentioned issue. The Barcode can be drawn using UTF-8 Character in Xamarin.Forms. We have created a sample which we have tried. Can you please modify the below sample to reproduce the issue, so that it will be easy for us to investigate further on this. 
Please find the following link, 
 
Please find the output document from the below link for your reference, 
 
Please let us know if you need further assistance on this. 
 
With Regards, 
Gayathri R 
 


Slobodan Babic
Replied On May 22, 2017 08:02 AM

Thank you for your answer.
Unfortunately, string you used in your example (Line 71 at Form1.cs) contains no special utf-8 characters - all of the letters are from standard ASCII set.

If you try to replace that line with some Cyrillic letters, or Eastern European letters, you will reproduce the issue:

  //Add data
  qrBarcode.Text = "АБВГДЂ ŠšĐđĆ掞";

Just in case this post gets messed up in transit because of unicode characters, characters are: 

  //Add data
  qrBarcode.Text = "\u0410\u0411\u0412\u0413\u0414\u0402 \u0160\u0161\u0110\u0111\u0106\u0107\u017D\u017E";

In my tests, any of these letters wil cause an error in barcode creation.
Best regards,
Slobodan

KarthikeyanC [Syncfusion]
Replied On May 25, 2017 08:34 AM

Hi Slobodan, 
We have created a new incident for addressing this issue, please follow the incident created under your portal for further information. 

Karthikeyan.C 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;