esc_pos_printer icon indicating copy to clipboard operation
esc_pos_printer copied to clipboard

Can't support Arabic language

Open MustafaGamalAbbas opened this issue 4 years ago • 8 comments

MustafaGamalAbbas avatar Sep 02 '20 10:09 MustafaGamalAbbas

any solutin? @andrey-ushakov

Rabeeh96 avatar Dec 09 '20 05:12 Rabeeh96

@Rabeeh96
I had worked around creating a widget with my specific design requirements and take a screenshot of this widget and then send it to the printer to print it as an image.

MustafaGamalAbbas avatar Dec 11 '20 21:12 MustafaGamalAbbas

@MustafaGamalAbbas after capture big size of bytes image does your printer stuck ?

ul-rotha avatar Jan 09 '21 15:01 ul-rotha

@ul-rotha it depends on the quality of the printer and the status of the internet, but for me, I had tried to print an invoice 1m long, and it works well.

MustafaGamalAbbas avatar Jan 09 '21 19:01 MustafaGamalAbbas

Can't support Arabic language

[ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: Invalid argument (string): Contains invalid characters.: "بسم الله الرحمن الرحيم" [ ] E/flutter (26083): #0 _UnicodeSubsetEncoder.convert (dart:convert/ascii.dart:89:9) [ ] E/flutter (26083): #1 Latin1Codec.encode (dart:convert/latin1.dart:40:46) [ ] E/flutter (26083): #2 Generator._encode (package:esc_pos_utils/src/generator.dart:77:21) [ ] E/flutter (26083): #3 Generator.text (package:esc_pos_utils/src/generator.dart:354:9)

s2yed avatar Jan 11 '21 14:01 s2yed

Which printer do you use?

xSuperMu avatar Feb 21 '21 18:02 xSuperMu

printer "بسم الله الرحمن الرحيم"

s2yed avatar Mar 01 '21 08:03 s2yed

u can use this

you can check this

this repo use 3 laiblary

secreenshot to convert widget to image and image library to convert it to uint8 and pos_print to print it ass u love to show

https://github.com/blackangiliq/flutter_pos_printer_spport_arabic

blackangiliq avatar Mar 23 '22 00:03 blackangiliq