Please enable JavaScript to view this site.

InterFormNG2 Manual

Navigation: Designer > Design elements > Barcode element

Insert any hex character in a 2D barcode

Scroll Prev Top Next More

In some 2D barcodes it is required to insert very special characters, that you cannot find on your keyboard. The characters are normally specified as the ascii hex character.

These special characters are e.g. used as delimiters in 2D barcodes to separate fields.

 

Examples of such special hex values can be:

 

Hex 05, Hex 0A (also knows as LF or line feed), Hex 0D (also known as CR or Carriage Return) and Hex 1D.

 

To insert such characters you can use the built in function, ng:hexToUtf8().

This function accepts a string as input, so if you e.g. want to define a string, that contains the characters with the hex value 05, then you can define it with this function:

 

ng:hexToUtf8('05')

 

Which can be inserted in e.g. concat functions or you can use this in definition of a variable as shown here.

 

The result view will show the hex characters, but it will be substituted to the right character(s) in the final, merged output and in the preview.