EscPosEncoder
EscPosEncoder copied to clipboard
For each command, codepage name is printed
Instead of text, printer prints out the codepage name, like 'ascii' or 'cp850'.
This is also happening to me. Is this maybe specific only for some printers? I'm using EPSON TM-P20.
I have the same problem did u find a solution?
i found the bug the paramaters for CodepageEncoder.encode should be swaped.
pls give me an example, cause I can't complete, it and i tried a lot of time, and get bored and thank u
in the function _encode
return CodepageEncoder.encode(value, this._codepage);
this line should be
return CodepageEncoder.encode(this._codepage, value);
I'll try thanks a lot..for ur response
Hi.. I print english successfully..but arabic get unreadable letters,while I tried different codepage Note my printer is xprinter.. Any help..pls
you need to check which codepages your printer supports and the use one with arabic letters