BinaryKits.Zpl icon indicating copy to clipboard operation
BinaryKits.Zpl copied to clipboard

Skip escaping characters?

Open obellish opened this issue 2 years ago • 3 comments

Hello,

Using this project, I noticed it's not possible to use TextFields with other commands as the source (mainly the ^RF command) due to character escaping, forcing me to use ZplRaw instead.

Is there a possible workaround for this?

obellish avatar Jul 21 '23 18:07 obellish

I'm not sure exactly what you mean, but it sounds like you want a literal ZPL command to be displayed on a label. You could use a hex escape for that, the escape character is _ unless specified otherwise with ^FH.

primo-ppcg avatar Jul 23 '23 06:07 primo-ppcg

Certain commands (like text fields, barcode, etc) can swap the Field Data command for an RFID Read command in order to display the RFID encoding on the tag for example, however when using the TextField command with an RFID command as the text the command itself is escaped and won't be sent properly

obellish avatar Jul 23 '23 15:07 obellish

So for example

^FO5,10^A0N32,32^RFR,2,12,1^FS

would display whatever is stored in the EPC bank of the RFID tag, however passing ^RFR,2,12,1 causes the command to be escaped. and I would like to avoid using ZplRaw

obellish avatar Jul 23 '23 15:07 obellish