Normalizing Carriage Returns and Line Feeds #160
-
Is it common to normalise Carriage Returns and Line Feeds within data before producing a symbol? If not this would mean that the value of the symbol could differ depending on the OS it was produced on and that feels a little off. Has anyone even hit this problem themselves before? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Think of BWIPP (an barcode symbologies themselves) as being too fundamental for this concern and of this being an application-level issue. Essentially BWIPP passes a PostScript string (byte array) to each encoder which faithfully stores what it is given in a barcode symbol. Compliant scanners simply return the byte array, unless ECI is present and supported: https://www.linkedin.com/pulse/enhanced-channel-interpretation-terry-burton/ Some of the encoders in BWIPP are "helpers" that process the data (e.g. convert bracketed GS1 AI syntax to a raw message) before sending it to a base symbology, but these relate to industry-specific formats rather than general character/string encoding. The following shows an example of how frontends can hexlify a string to pass it precisely to BWIPP: As far as storing structured data such as VCARD within a symbol (of any type), then refer to the specification itself which is typically under specified. Then do whatever is necessary to ensure interop. The barcode is just a dumb medium: bytes in, bytes out. |
Beta Was this translation helpful? Give feedback.
Think of BWIPP (an barcode symbologies themselves) as being too fundamental for this concern and of this being an application-level issue.
Essentially BWIPP passes a PostScript string (byte array) to each encoder which faithfully stores what it is given in a barcode symbol. Compliant scanners simply return the byte array, unless ECI is present and supported: https://www.linkedin.com/pulse/enhanced-channel-interpretation-terry-burton/
Some of the encoders in BWIPP are "helpers" that process the data (e.g. convert bracketed GS1 AI syntax to a raw message) before sending it to a base symbology, but these relate to industry-specific formats rather than general character/string encoding.
The f…