Aspose. barcode use non-English characters to write a QR code

Source: Internet
Author: User

When using aspose. barcode, you can use a non-English character set to generate a two-dimensional code, for example, 文,,, and so on. The maximum number of characters is 1000. The following is an example of generating a QR code using Turkish text and Chinese text:

Create a PDF417 QR code with Turkish characters

C #

 // Generate the barcode    BarCodeBuilder builder = new BarCodeBuilder();    // Set symbology type    builder.SymbologyType = Symbology.Pdf417;    // Set the code text        string codetext = "AYŞE" + "\n" + "Ümit" + "\n" + "Ümit@estee.com" + "\n" + "Türkiye";    builder.CodeText = codetext;    // Set the display text    builder.DisplayText = codetext;    builder.Save("c:\\barcode.png");

VB. NET

 ' Generate the barcode    Dim builder As New BarCodeBuilder()    ' Set symbology type    builder.SymbologyType = Symbology.Pdf417    ' Set the code text    Dim codetext As String = "AYŞE" + vbLf + "Ümit" + vbLf + "Ümit@estee.com" + vbLf + "Türkiye"    builder.CodeText = codetext    ' Set the display text    builder.DisplayText = codetext    builder.Save("c:\\barcode.png") 

Create a QR code in Chinese

C #

// Generate the barcode barcodebuilder builder = new barcodebuilder (); // set symbology type builder. symbologytype = symbology. 2017417; // set the code text string codetext = "trapped by floods"; builder. codetext = codetext; // set the display text builder. displaytext = codetext; builder. save ("C: \ barcode.png ");

VB. NET

'Generate the barcode dim Builder as new barcodebuilder () 'set symbology type builder. symbologytype = symbology. 2017417 'set the code text dim codetext as string = "trapped by floods" builder. codetext = codetext 'set the display text builder. displaytext = codetext builder. save ("C: \ barcode.png ")

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.