FAQ Barcode Creation
How to Encode GS, RS and EOT into a 2D Barcode?
How to Encode GS, RS and EOT into a 2D Barcode?
RS, GS and EOT are ASCII control characters, which are used to format data in a 2D bar code (see ISO/IEC 15434). Because they are unprintable you need to use special escape sequences to encode them in the bar code data.
- \x1d - GS, Group Separator, ASCII Code 29 (Hex 1D)
- \x1e - RS, Record Separator, ASCII Code 30 (Hex 1E)
- \x04 - EOT, End of Transmission, ASCII Code 04 (Hex 04)
In order to convert the hexadecimal sequences (starting with \x...) into their ASCII value, you have to enable Escape-Sequences (Translate Escape Sequences) in the bar code properties.
Format 06 Example: [)><RS>06<GS>SP66831000G<GS>SV9117327G<GS>S16S3.0G<RS><EOT>
Data to encode : [)>\x1e06\x1dSP66831000G\x1dSV9117327G\x1dS16S3.0G\x1e\x04
Note: The header and trailer of Format 06 can be encoded using Macro 06 Format (see 2D specific bar code properties).
If you want to verify the bar code data with your mobile bar code reader app, please consider that RS, GS and EOT are often just displayed as a blank. To verify what's exactly in a 2D bar code, you can use the BCTester Freeware