This question is somewhat related to the following topic:
I am trying to create a data matrix barcode component of a special format. It must contain Seperators and End of Line characters. Specifically I need Chr(4), Chr(29), and Chr(30) to be inside my expression.
When I add the special characters to my barcode and Print it out I can’t figure out how to test to see if the characters will be read in. Because notepad text input would not show the seperators. Is there any software out there I can download that will read a data matrix in character by character so I can verify it works?
You are providing the escape codes in octal, and repr() is delivering them in hexadecimal (\x). However, \029 isn’t valid octal, so it is interpreted as octal \02 and a separate character ‘9’. I suggest you uniformly use hexadecimal so there is no confusion.