Hi
I'm trying to print to an Epson TM-U295 slip printer in raw mode. It's partially working but suspect I'm having a problem with BYTE VALUES that are extended ASCII codes. I'm trying to print all values with UTF escaping. For example the code:
(function() {
var config, data;
config = qz.configs.create({file: 'C:\\TMP\\JS-TEST.OUT', encoding: 'UTF-8'})
data = [
'\u001B@',
'\u001BL',
'\u001BT\u0000',
'\u001BW\u0095\u0000\u00B1\u0000\u000C\u0000\u0009\u0000',
'\f',
'\u001Bq'
];
qz.print(config, data)['catch'](function(e) {
console.error(e);
});
}).call(this);
When printed to file and examined in a hex editor becomes:
1B 40
1B 4C
1B 54 00
1B 57 3F 00 B1 00 0C 00 09 00
34 38 0A
0C
1B 71
As you can see the 4th row down, 3rd byte in has been switched from 0x95 to 0x3F. In bigger jobs I'm seeing quite a few values being switch to 3F (ASCII FOR ?)
Am i missing something or approaching ESC/POS printing in the wrong way ?
Thanks in advance for any insight or help anyone can provide.
Mat