---
title: Non-English Barcode Value
slug: non-english-barcode-value
docTags: 
createdAt: 2023-03-13T19:36:57.000Z
---

## 1D  Barcodes

Most 1D barcodes encode a subset of [ASCII](https://en.wikipedia.org/wiki/ASCII) character set. [Code128](https://en.wikipedia.org/wiki/Code_128) extends encoding to [ISO-8859-1](https://en.wikipedia.org/wiki/ISO/IEC_8859-1) character set by using the special symbol FNC4.

## 2D Barcodes

2D barcodes (<font color="#eb144c">`PDF417`</font>, <font color="#eb144c">`DataMatrix`</font>, <font color="#eb144c">`QR`</font>), on the other hand, are capable of encoding text in any language. All output formats use UTF-8 encoding to accurately represent non-English file names and barcode text values. Localized language text can be **encoded in the barcode** in several ways:

| **Type**                                 | **Generation process**                                                                                                                                      | **auto-detection** |
| ---------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------ |
| <font color="#eb144c">`UTF8`</font>      | Text is encoded as UTF-8 before barcode generation                                                                                                          | yes                |
| <font color="#eb144c">`ECI`</font>       | Barcode generator uses  [Extended Channel Interpretation](https://en.wikipedia.org/wiki/Extended_Channel_Interpretation)                                    | yes                |
| <font color="#eb144c">`Generator`</font> | The Barcode generator encodes text according to barcode type specification, e.g., [KANJI](https://en.wikipedia.org/wiki/QR_code) for QR code.               | yes                |
| <font color="#eb144c">`CodePage`</font>  | Text encoded using language-specific [code page](https://www.inliteresearch.com/help/BarcodeReaderCLI/barcodereadercli_help.htm) before barcode generation. | no                 |

The barcode recognition engine automatically detects and outputs the **UTF-8** barcode values for <font color="#eb144c">`UTF8`</font>, <font color="#eb144c">`ECI`</font>, and <font color="#eb144c">`Generator`</font> types.

To get the UTF-8 value for <font color="#eb144c">`CodePage`</font>-encoded value,  your application should explicitly decode  <font color="#eb144c">`Data`</font> value.

:::CodeblockTabs
```csharp
string text = System.Text.Encoding.GetEncoding(1251).GetString(bc.Data);
```

```java
String text = new String(Bc.getData(), Charset.forName("windows-1251"));
```
:::

&#x20;NOTE: Using incorrect codepage barcodes results in an incorrect output text value.

