ramonlopes / jzebra

Automatically exported from code.google.com/p/jzebra
0 stars 0 forks source link

Euro sign not printing #124

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. sending this to the EPSON TM-U220D printer "Euros €" without quotes
2. and the € sign is never printed...
3. I tried ALL combinations possible of setEncoding available (+ hex, chrs...)

What is the expected output? What do you see instead?
I'm expecting the € sign to print :), and I'm getting or garbage signs, or ? 
marks

What version of the product are you using? On what operating system?
1.45 / Vista Familial Premium

Please provide any additional information below.
tried to fiddle with the manual 
http://support.epson.ru/products/manuals/000350/part1.pdf too ... but no 
chance...
Tried HEX codes, no chance... I'm a bit lost... Console shows fine :
Euros €
...in the end, I'm getting Garbage, or I'm getting a ? ....
I know it should work, because when I first tried, like 5 weeks ago, I git this 
euro sign to print... and I went onto HTML print since then...
Back onto the ticket printer, and BANG... euro sign isn't printing anymore... :(
I'm using PHP & JS with UTF8 both encoded NO BOM files ...
any help would be really appreciated... I'm running out of paper & ideas!! :D

Thanks so much for this powerfull applet by the way... That's the only downfall 
I'm left with at the moment... I really hope I can get some help on that one 
I've been fighting for a week just on that...
Big up for the work you've done Tres, it's amazing... help or no help...
Baudouin

Original issue reported on code.google.com by blamour...@gmail.com on 5 Apr 2013 at 10:25

GoogleCodeExporter commented 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

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
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:

GoogleCodeExporter commented 8 years ago
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