IRONSOFTWAREHOME
Write Unicode Barcodes
using IronBarCode;

// Unicode text with chinese and Arabic characters
string text = "ABC 中国 العربيّة";

// Create a PDF417 barcode with the specified text
var myBarcode = BarcodeWriter.CreateBarcode(text, BarcodeWriterEncoding.PDF417);

// Save the barcode as an image
myBarcode.SaveAsImage("Unicode.jpeg");
Imports IronBarCode

' Unicode text with Chinese and Arabic characters
Dim text As String = "ABC 中国 العربيّة"

' Create a PDF417 barcode with the specified text
Dim myBarcode = BarcodeWriter.CreateBarcode(text, BarcodeWriterEncoding.PDF417)

' Save the barcode as an image
myBarcode.SaveAsImage("Unicode.jpeg")
NuGet Download
PM > Install-Package BarCode
Write Unicode Barcodes

Write Unicode Barcodes

IronBarcode empowers developers by supporting the writing of Unicode characters for barcode generators and writers. This convenience allows developers to write in multiple languages, making it possible for products with labels in both Japan and Egypt to use the same barcode. It also eliminates the need to convert text to ASCII or another lossy format, streamlining the process efficiently and eliminating unnecessary steps.

Some of the most common languages that are used in Unicode are:

  • Hindi
  • Chinese (many variants)
  • Arabic
  • Japanese
  • Thai

The first step to creating a Unicode barcode with IronBarcode is to define the string value you want the barcode to have. In this example, we're using a mix of English, Chinese, and Arabic as a single string to demonstrate the flexibility of IronBarcode.

The second step is to create an instance of BarcodeWriter, then call the method CreateBarcode to input the string defined in the first step and the type of barcode. Do note that in order to create a Unicode barcode, only certain types of barcode encoding are allowed. The recommended formats are either BarcodeWriterEncoding.DataMatrix, BarcodeWriterEncoding.PDF417, and BarcodeWriterEncoding.QRCode as shown above. Linear barcodes, such as Code 128 and Code 39, do not support Unicode and are limited to ASCII, which requires workarounds.

The third and final step is to save the barcode as a JPEG by calling SaveAsImage with the desired file name as the parameter. In this instance, it would be Unicode.jpeg.

View on GitHub

Ready to Get Started?

Nuget Downloads 2,422,100Version:2026.9just released

Key in blue circle

Get your free 30-day Trial Key instantly.

Your trial license will be sent to your email address

No limitations. 100% unlocked. No credit card.

bullet_checkedNo credit card or account creation requiredNo limitations. 100% unlocked. No credit card.
  • Logo Aetna
  • Logo NASA
  • Logo GE
  • Logo Porsche
  • Logo USDA
  • Logo Qatar
Join Millions of Engineers who’ve tried IronPDF
Book your free Live Demo
Booking Badge

Trusted by Millions of Engineers Worldwide

Iron Software's customer logos
Get Your No-Obligation Consult
Complete the form below or email sales@ironsoftware.com
Your details will always be kept confidential.
Trusted by Millions of Engineers Worldwide
Iron Software's customer logos
Get your free 30-day Trial Key instantly.
No credit card or account creation required