Click here to Skip to main content
15,881,413 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I need to generate a QR code with Arabic Text using C#. I got some code from google it's working fine with English. How can i do with the same in Arabic.

Pasting the working code for English

C#
string code = "name:" + txtName.Text ;
QRCodeGenerator qrGenerator = new QRCodeGenerator();
QRCodeGenerator.QRCode qrCode = qrGenerator.CreateQrCode(code,QRCodeGenerator.ECCLevel.H);
System.Web.UI.WebControls.Image imgBarCode = new System.Web.UI.WebControls.Image();


Here the value of txtName is Arabic. If text in Arabic it is not working .

Anyone can suggest.

Thank You.
Posted
Updated 18-Feb-22 5:28am
v2
Comments
Krunal Rohit 6-Oct-15 5:52am    
Kendo QRCode not working with Arabic text ?

-KR
sijila 6-Oct-15 6:52am    
Not working .
Kornfeld Eliyahu Peter 6-Oct-15 9:34am    
Kendo QRCode working with arabic text, but you have to set the encoding right (like utf-8)...
Check here: http://demos.telerik.com/kendo-ui/qrcode/api
(Change encoding and put some Arab text in 'VALUE')
sijila 7-Oct-15 3:50am    
From the above link i changed Encoding to UTF-8 then QR code is generated for arabic.But how to change encoding in the code i can only find this much (
encoder.QRCodeEncodeMode = QRCodeEncoder.ENCODE_MODE.BYTE;) and it is mention that default is (ISO/IEC 8859-1))
Kornfeld Eliyahu Peter 7-Oct-15 5:08am    
You have to learn to search help on your own...
http://docs.telerik.com/kendo-ui/api/javascript/dataviz/ui/qrcode#configuration-encoding

1 solution

Please some one suggest, I am also seeing same issue. With Arabic it is not working.How to generate a QR code with Arabic Text.
 
Share this answer
 
Comments
Richard Deeming 18-Feb-22 12:30pm    
"Me too" is not a solution to this question.

If you want to ask a question, then ASK A QUESTION[^]. But you're going to need to provide A LOT more information that that if you want anyone to be able to help you.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900