<a id="using-gs1-matrixcode"></a>

# Using GS1 Data Matrix Codes

#### WARNING
This library is deprecated, use [**EasyMatrixCode2**](../index.html.md) instead.

**EasyMatrixCode** is able to find and decode GS1-compliant data matrix codes.

The GS1 standard adds semantic identifiers to the contents of a data matrix code. These identifiers are interpreted in an easy and consistent way.

The structure of GS1-compliant content is as follows:

```default
]d2[GS1]{Id1}{Value1}[GS1]{Id2}{Value2}…
```

where:

* `]d2` is the string identifying a GS1-compliant stream
* `[GS1]` is the GS1 escape character (0x1d)
* `{Id}` is an application identifier
* `{Value}` is the value associated with that identifier.

**Example**:

The string:

```default
]d2[GS1]11180112[GS1]15190101
```

is interpreted as follows:

* It contains two GS1 parts: `11180112` and `15190101`.
* The first `(11180112)` is composed of the identifier `11` and the value `180112`, meaning that the product has a production date (the meaning of identifier `11`) of January 12th, 2018.
* The second `(15190101)` is composed of the identifier `15` and the value `190101`, meaning that the product has a best before date (the meaning of identifier `15`) of January 1st, 2019.

#### SEE ALSO
For more information, see [https://www.gs1.org/](https://www.gs1.org/)
