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

The Urdu tag is for issues relating to displaying user interfaces and managing data in Udru written language. #137

Open
sheri-dal opened this issue Apr 5, 2024 · 0 comments

Comments

@sheri-dal
Copy link

I extract an Urdu text from a web adress. For example, my text is میڈیم کون. But when I print it, I see 'ÙرÙردÛÙ'. How can I print it correctly?

I'm using a printer: Black Copper BC-85AC

I'm currently using:

esc_pos_utils: ^1.1.0 flutter_pos_printer_platform: ^1.0.12 The printer prints English successfully. but when we try to print Urdu, it prints strange characters not the Urdu text.

I tried two ways to send encoded string:

First:

final urduText = utf8.encode('میڈیم کون'); Uint8List uint8List = Uint8List.fromList(urduText); bytes += generator.textEncoded(uint8List);

I use this. But not work.

I'm using a printer: Black Copper BC-85AC I'm currently using:

esc_pos_utils: ^1.1.0 flutter_pos_printer_platform: ^1.0.12 The printer prints English successfully. but when we try to print Urdu, it prints strange characters not the Urdu text.

I tried two ways to send encoded string:

final urtext = utf8.encode('میڈیم کون'); Uint8List uint8List = Uint8List.fromList(urtext);

bytes += generator.textEncoded(uint8List);

I use this. But not work.

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

1 participant