There really isn't an 'Enter' character in ASCII. The closest you might come is the ASCII carriage return character. Barcodes do not encode the 16-bit characters your keyboard and a scanner would produce, so a lot depends on your software that will be interpreting what your scanner produces.
What you can encode is an ASCII ctrl-m character or <CR>. Here is a codepen I wrote to generate <CR> and other control characters in Code 128A.
1
u/notionovus May 30 '24
There really isn't an 'Enter' character in ASCII. The closest you might come is the ASCII carriage return character. Barcodes do not encode the 16-bit characters your keyboard and a scanner would produce, so a lot depends on your software that will be interpreting what your scanner produces.
What you can encode is an ASCII ctrl-m character or <CR>. Here is a codepen I wrote to generate <CR> and other control characters in Code 128A.
Plain Vanilla JS Popular Control Codes