react-native-bluetooth-escpos-printer icon indicating copy to clipboard operation
react-native-bluetooth-escpos-printer copied to clipboard

Print euro sign on Android

Open christianrank opened this issue 4 years ago • 4 comments

On iOS, I can print the euro sign without any problems.

On Android, it prints Ç instead of €.

How to fix this?

christianrank avatar Aug 13 '20 08:08 christianrank

I'm unable to print € symbol on android, instead it prints a chinese text. I'm using the BluetoothEscposPrinter.printText('€') function and using encoding as UTF-8 and codepage of 0. Any suggestions on what I am doing wrong or can do to rectify the issue?

LightningNemesis avatar Sep 07 '20 21:09 LightningNemesis

@christianrank I got it to work. I was using the UTF-8 encoding with codepage 0 and the (english) text was coming out fine, save for symbols like • and €. All that you need to do is change encoding to Cp1252 and code page to 32. Cheers! ;-)

check the pic to get a clearer idea: Screenshot 2020-09-09 at 5 34 12 PM

LightningNemesis avatar Sep 09 '20 22:09 LightningNemesis

Hello, For the euro sign the configuration is this:

{
encoding:' Cp858',
codepage: 13
}

for the French language

aroumane avatar Jun 01 '21 13:06 aroumane

@christianrank I got it to work. I was using the UTF-8 encoding with codepage 0 and the (english) text was coming out fine, save for symbols like • and €. All that you need to do is change encoding to Cp1252 and code page to 32. Cheers! ;-)

check the pic to get a clearer idea: Screenshot 2020-09-09 at 5 34 12 PM

How to find those specific codepage numbers? I am trying to use UTF-8 but it gives me some Chinese characters. I need to know what is the codepage for the UTF-8 encoding.

Oshannk avatar Feb 16 '23 15:02 Oshannk