-
Notifications
You must be signed in to change notification settings - Fork 200
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
is there charset code that support Arabic text #82
Comments
windows-1256 worked with me |
please provide gist of the code ....here is mine
|
me too it's not working for me |
how did you did it ?! |
still nothing.... |
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. |
What's the result of using |
Can I ask the make/model of the printer? |
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>.
|
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 |
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 😅😭 |
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); |
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 ) . |
how? can u share the code please |
you have to go the printer settings menu (Android settings) and set the encoding to utf-8 or windows-1256 |
Changing the |
Can you share the path of file(to) to edit? |
@blitzlepe It's in the system settings, there must be a section called Printer where you can change the encoding to UTF-8 |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
need to print invoice in Arabic...thank you
The text was updated successfully, but these errors were encountered: