anastaciocintra / escpos-coffee

Java library for ESC/POS printer
https://anastaciocintra.github.io/escpos-coffee
MIT License
280 stars 74 forks source link

i can't print Arabic letters , i use escpos.setCharacterCodeTable(EscPos.CharacterCodeTable.CP864_Arabic); but the output is only Chinese letters. #47

Closed M-Elnemr closed 4 years ago

M-Elnemr commented 4 years ago

Steps to Reproduce

  1. ...
  2. ...
  3. ...

Evidences

anastaciocintra commented 4 years ago

Hi @M-Elnemr Other colleagues had the same question. Then I wrote a wiki with this theme that contain some tips for printer diagnosis and solutions.

Take a look at wiki and count on me to answer the questions.

see you

anastaciocintra commented 4 years ago

one good issue history is #44

M-Elnemr commented 4 years ago

Socket sock = new Socket(); sock.connect(new InetSocketAddress(PrinterConstants.IP, PrinterConstants.PORT), 1500); oStream = sock.getOutputStream(); EscPos escpos = new EscPos(oStream); escpos.setPrinterCharacterTable(3); escpos.setCharsetName("860"); escpos.writeLF("Some Portuguese special characters: çÇÃãõà"); escpos.feed(5); escpos.cut(EscPos.CutMode.FULL); escpos.close();

this is my code as you mentioned in the documentation but unfortunately it print this part"çÇÃãõà" as Chinese letters idk maybe my printer has a problem

anastaciocintra commented 4 years ago

hi @M-Elnemr can you talk about your printer model and brand? Do you have the programming manual? can you send here ?

anastaciocintra commented 4 years ago

Hi @M-Elnemr, is your problem solved? are you member of @ralmarri12 team? can I close this issue?