How to Encode QR Code with Chinese Words in C# ?

back to home  >  Tech FAQ  >  How to Input Chinese to Create QR Code in C#


Hi, I want to insert CJK characters to QR Code Data, such as Chinese. Does your .net barcode generator support for this? If true, could you give me a C# demo code? Because I'm developing a barcode generating function program in C#.

---- Derrick


Hi, Derrick.

pqScan .NET Barcode Creator is able to generate QRCode with CJK characters. Look at the demo code below, you just need set UseUTF8 property to True.

using System;
using PQScan.BarcodeCreator;

namespace BarcodeGenerateQuestion
    class Program
        static void Main(string[] args)
            //create a new Barcode object
            Barcode qrcode = new Barcode();
            //select barcode type
            qrcode.BarType = BarCodeType.QRCode;
            //set utf-8 format to true,in this text mode, you can input CJK(Chinese, Japanese, Korean)
            qrcode.UseUTF8 = true;
            //input chinese data
            qrcode.Data = "123456";
            //set qrcode size
            qrcode.Width = 200;
            qrcode.Height = 200;
            //encode qrcode image

Hope the C# code can be helpful.

---- pqScan Support Team

Online Demo Download Trial How to Insert Barcode Control to MS Excel WorkSheetin C# ? How to Add Barcode Image to MS Excel in C# ? How can I Create Barcode to Crystal Report in Visual Studio ? Can I Read Barcode in PDF document using C#? Can I Get a Compression Jpeg Image from PDF ? Merge A Group of Multi-page Tiff to PDF documentusing C#? Translate JPG Image to PDF document in C#? Convert specific pages from PDF to images in C# Is it available for reading all of the barcode in a picture by one time? Do You Support Translate Images to PDF from SQL Database? Question about Image Size.