Closed GoogleCodeExporter closed 8 years ago
if that helps ...
var jzebra_applet = document.jzebra;
//jzebra_applet.setEncoding('850'); //Ñ OK - € NOT OK
//jzebra_applet.setEncoding('cp866'); //ñ not OK / € not ok
//jzebra_applet.setEncoding('cp1252'); //ñ not OK / € not ok
//jzebra_applet.setEncoding('UTF-8'); //ñ not OK / € not ok
//jzebra_applet.setEncoding('UTF8'); //ñ not OK / € not ok
jzebra_applet.setPrinter(4);//EPSON TM U220
jzebra_applet.append("Ñ €\n");
jzebra_applet.print();
I'm lost :'(
Original comment by blamour...@gmail.com
on 6 Apr 2013 at 2:37
got some news... I can't explain how I got there... but I don't really care...
I've been spending at least 7 days on this one...
Printer is a EPSON TM-U220D
jzebra_applet.append("\x1B\x40"); // INIT PRINTER
jzebra_applet.append("\x1B\x74\x13"); // IF I REMOVE THIS OR THE NEXT LINE IT
STOPS WORKING :( ... Can't explain the 13 though...
jzebra_applet.setEncoding('cp858'); //858 is EURO
var str =
'!"#$%&\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklm
nopqrstuvwxyz{|}~¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿�
�ÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚÛÜÝÞßàáâãäåæç�
�éêëìíîïðñòóôõö÷øùúûüýþÿŒœŠšŸƒ–—‘’‚“”
„†‡•…‰€™';
jzebra_applet.append(str + "\n");
jzebra_applet.print();
Only chars that are not printing (giving a ? instead) are :
Œ œ Š š Ÿ – — ‘ ’ ‚ “ ” „ † ‡ • … ‰ ™
So I'll replace these with other chars & that's it... I'm not too bothered
since we're in Spain here! :)
Once again, thanks ever so much for this amazing free applet... Internet
wouldn't be what it is without pple like you!
Original comment by blamour...@gmail.com
on 8 Apr 2013 at 11:20
some more info that helped me ...
http://support.perimatic.eu/perimatic/imprimante_ticket
Original comment by blamour...@gmail.com
on 8 Apr 2013 at 11:28
Attachments:
Baudouin,
Your findings are a great contribution, thank you for this trial and error!
Closing bug and marking as invalid, since no code changes are needed. There
are some stackoverflow questions on this topic as well, so this is great to
know and have for the ESC/P language and for the jzebra applet.
-Tres
Original comment by tres.fin...@gmail.com
on 8 Apr 2013 at 12:17
Original issue reported on code.google.com by
blamour...@gmail.com
on 5 Apr 2013 at 10:25