is there charset code that support Arabic text #163
Replies: 21 comments
-
windows-1256 worked with me |
Beta Was this translation helpful? Give feedback.
-
please provide gist of the code ....here is mine
|
Beta Was this translation helpful? Give feedback.
-
me too it's not working for me |
Beta Was this translation helpful? Give feedback.
-
how did you did it ?! |
Beta Was this translation helpful? Give feedback.
-
still nothing.... |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
not an efficient solution ....i thought about make it an pdf then printing it as an image before.....still not really a solution 😂...so still waiting on @kreemov to show me if it really works. |
Beta Was this translation helpful? Give feedback.
-
What's the result of using |
Beta Was this translation helpful? Give feedback.
-
this is the output |
Beta Was this translation helpful? Give feedback.
-
Can I ask the make/model of the printer? |
Beta Was this translation helpful? Give feedback.
-
that is the problem we don’t have constraint on what printer the merchant
uses, we only provide the connection and printing functionality....if we
did we could have used the printer's sdk...😁
…On Fri, Dec 3, 2021 at 9:37 PM Mike Diarmid ***@***.***> wrote:
Can I ask the make/model of the printer?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#82 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIIKSN6BKN3RMY5SLVIYBLLUPEL75ANCNFSM45PBJ7DA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Beta Was this translation helpful? Give feedback.
-
I see 😅 the only other thing I can suggest is try print through a quick Node.js script with something like https://www.npmjs.com/package/node-thermal-printer that's known to support Arabic - if it works with that then it confirms it's an issue with this plugin and not the printer |
Beta Was this translation helpful? Give feedback.
-
Thanks ...and also thanks a lot for the support ✌️ ... i appreciate the time .......can’t with for the next space ...it’s seems my issue with the "multi package" was not fully understood because of its complexity and with out having visual representation 😅😭 |
Beta Was this translation helpful? Give feedback.
-
Go to the device POS settings, and on print settings, set printing with UTF-8. If the above method doesn't work, try the next method (which is printing images as text). Solution inspired from @fatimaown93. You can convert the widget into an image (using Screenshot) and print it: Here is the Widget: Screenshot(
controller: screenshotController,
child: Container(
width: 190,
decoration: BoxDecoration(
border: Border.all(color: Colors.black),
color: Colors.white,
),
// color: Colors.white,
child: Column(
children: [
Row(
children: [
Text(
'أهلاً وسهلاً',
style: TextStyle(
color: Colors.black,
),
textAlign: TextAlign.right,
),
Spacer(),
Text(
'شكو ماكو؟',
style: TextStyle(
color: Colors.black,
),
),
],
),
],
),
),
), The widget is converted into image of var imageTextRawUint8List = await screenshotController.capture() ?? Uint8List(0); Then, print the image bytes: bluetooth.printImageBytes(imageTextRawUint8List); |
Beta Was this translation helpful? Give feedback.
-
Thanks so much @bluemix ,but I have already thought about it and implemented it if you have seen the conversion between me and @fatimaown93, but I want is an efficient solution , I wish if there was a way to convert codepage to utf-8 command as binary message to the thermal printer. Im still trying to test some things , I will keep you posted if I came with a better solution (I don't want to depend on a package not made for this problem and bound/scoped to a UI logic that can change over time ) . |
Beta Was this translation helpful? Give feedback.
-
how? can u share the code please |
Beta Was this translation helpful? Give feedback.
-
you have to go the printer settings menu (Android settings) and set the encoding to utf-8 or windows-1256 |
Beta Was this translation helpful? Give feedback.
-
Changing the |
Beta Was this translation helpful? Give feedback.
-
Can you share the path of file(to) to edit? |
Beta Was this translation helpful? Give feedback.
-
@blitzlepe It's in the system settings, there must be a section called Printer where you can change the encoding to UTF-8 |
Beta Was this translation helpful? Give feedback.
-
Thank you @bluemix you saved my day. I was trying it from the last few days. |
Beta Was this translation helpful? Give feedback.
-
need to print invoice in Arabic...thank you
Beta Was this translation helpful? Give feedback.
All reactions