Module datamatrix::data[][src]

Data part de- and encoding.

The bytes encoded into a Data Matrix symbol consist of two parts, the first part is the actual information one wants to encode, the second part error consist of correction bytes.

The functions in this module can be used to de- and encode the first part, the data part.

There is no reason I can think of for an end user of the library to ever call them directly but they can be useful if one needs to work on a lower level.

Enums

DataDecodingError
DataEncodingError
EncodationType

List of data encodation types

Functions

decode_data

Decode the data codewords of a Data Matrix.

encodation_plan

Compute a plan for when to switch encodation types during data encoding.

encode_data

Encode input to data codewords for Data Matrix.

latin1_to_utf8

Try to convert a Latin 1 encoded string to an UTF-8 string.

utf8_to_latin1

Try to convert an UTF-8 encoded string to Latin 1.