Skip to content
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

Doesn't support encoding Arabic text #5

Open
MustafaGamalAbbas opened this issue Sep 2, 2020 · 5 comments
Open

Doesn't support encoding Arabic text #5

MustafaGamalAbbas opened this issue Sep 2, 2020 · 5 comments
Assignees

Comments

@MustafaGamalAbbas
Copy link

No description provided.

@pr0gramista pr0gramista self-assigned this Sep 9, 2020
@pr0gramista
Copy link
Owner

Sorry for my late response.

I have checked some signs for ISO-8859-6 and the output seems to be correct. Could you provide any example of not working text or bytes?

@mosleh200989
Copy link

Uint8List encTxt2 = await CharsetConverter.encode("ISO-8859-6", 'إفتح الصندوق');
ticket.textEncoded(encTxt2, styles: PosStyles(align: PosAlign.right,codeTable: PosCodeTable.arabic));

Arabic is printing. Its characters printing reverse. first characters going last. last characts printing first. Can you please solve this?

@pr0gramista
Copy link
Owner

I assume this is related with a thermal printer. I saw that there are problems with RTL text on thermal printers. I found this and this which I think leads to using some utility to adapt the printeer for that and some small prefix to the printing methods.

Doesn't seem to be related to charset_converter per se.

If it does could provide me the correct output of await CharsetConverter.encode("ISO-8859-6", 'إفتح الصندوق');

@mosleh200989
Copy link

I have spent so many days. Finally I found one plugin which is working well. arabic printing perfectly. plugin link

@pr0gramista
Copy link
Owner

Cool, I'll leave the issue open for reference or additional input.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants