Link Search Menu Expand Document

Create QR Code with Unicode Value - C#

QR Code SDK sample in C# demonstrating ‘Create QR Code with Unicode Value’

Program.cs
using System.Text;
using System.Diagnostics;
using Bytescout.BarCode;

namespace UnicodeValue
{
    class Program
    {
        static void Main(string[] args)
        {
            // Create and activate QRCode instance 
            using (QRCode barcode = new QRCode("demo", "demo"))
            {
                // Set the character encoding to UTF8
                barcode.CharacterEncoding = Encoding.UTF8;

                // Set Unicode barcode value
                barcode.Value = "日本";

                // Show barcode caption (optional)
                barcode.DrawCaption = true;

                // Save barcode image to file
                barcode.SaveImage("result.png");
            }

            // Open the image in default image viewer (for the demo purpose)
            Process.Start("result.png");
        }
    }
}

Download Source Code (.zip)

Return to the previous page Explore QR Code SDK