Skip to content

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

@sheri-dal

Description

@sheri-dal

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions