andresperezmelo / print_bluetooth_thermal

Plugin para enviar bytes sin procesar a la impresora solo por ahora para Android
Other
21 stars 22 forks source link

not support Arabic letter #3

Open SamadDev opened 2 years ago

SamadDev commented 2 years ago

not support Arabic letter

zhake555 commented 8 months ago

List bytes = []; final profile = await CapabilityProfile.load(); final generator = Generator( optionprinttype == "58 mm" ? PaperSize.mm58 : PaperSize.mm80, profile); bytes += generator.reset(); Uint8List byteList = await CharsetConverter.encode('CP864', 'عربي'); bytes += generator.textEncoded( byteList, styles: const PosStyles(codeTable: 'CP864', align: PosAlign.right), ); final result = await PrintBluetoothThermal.writeBytes(bytes);

try this
abdulghani-maystroo commented 2 weeks ago

hello I have tried that code but printer print just empty line please help @zhake555