DantSu / ESCPOS-ThermalPrinter-Android

Useful library to help Android developpers to print with (Bluetooth, TCP, USB) ESC/POS thermal printer.
MIT License
1.18k stars 357 forks source link

Arabic is printed as Chinese characters #499

Open Angelito711 opened 6 months ago

Angelito711 commented 6 months ago

Hello, Can you tell me how to print Arabic? I tried to change the encoding into UTF-8 and Windows-1256 but then it printed in Chinese... and thank you so much for this! you saved the world!

dashwood01 commented 6 months ago

Hello, Can you tell me how to print Arabic? I tried to change the encoding into UTF-8 and Windows-1256 but then it printed in Chinese... and thank you so much for this! you saved the world!

Have you changed the printer's code page?

Angelito711 commented 6 months ago

I'm sorry, what do you mean?

dashwood01 commented 6 months ago

I'm sorry, what do you mean?

Check this out

https://aures-support.com/DATA/drivers/Imprimantes/Commande%20ESCPOS.pdf

You need to send the hex code to the printer and change the printer's code page so that special characters are available to you.

Angelito711 commented 6 months ago

wow! thanks a lot, is it possible for me to have a google meeting with you? just 15 minutes.. thank you!

Angelito711 commented 6 months ago

I tried to change the encoding and it still doesn't work.. any help would be great!

nrs1022 commented 2 months ago

Hi, refer to issue https://github.com/DantSu/ESCPOS-ThermalPrinter-Android/issues/517