Skip to content Skip to sidebar Skip to footer

Esc/pos Printing Arabic Characters Withthermal Printer

I am trying to print arabic string in escpos from android java. But only some chinese characters are printing. My printer supports arabic language. Here my code private void printA

Solution 1:

Greeting,

Your program is great and works fine.

The problem is the character encoding passed to the printer. Somewhere in the network from your program to the printer, the UTF-8 encoding (java default) is converted to other encoding.

Check the printer default encoding, it might be possible to change. If cannot change default printer encoding, change the java encoding accordingly.

Also if you have a proxy/filter/firewall in the network it might change encoding as well.

Update

Change default printer encoding with operating system printer's default settings.

Change Java encoding answered here.

Post a Comment for "Esc/pos Printing Arabic Characters Withthermal Printer"