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

Does it support Lao language ? #12

Open
soubinkittiphanh opened this issue Apr 13, 2021 · 8 comments
Open

Does it support Lao language ? #12

soubinkittiphanh opened this issue Apr 13, 2021 · 8 comments

Comments

@soubinkittiphanh
Copy link

No description provided.

@soubinkittiphanh
Copy link
Author

I am using "bluetooth_thermal_printer" from flutter library and "charset_converter: ^2.0.0"
my code is below trying to print Thai but the result is unreadable, please suggest what is wrong with code below
// THAI UNICODE PRINTING.............
Uint8List encTxt12 =
await CharsetConverter.encode("TIS620", "Thailand: สวัสดี");
ticket.textEncoded(encTxt12, styles: PosStyles(codeTable: "UTF-8"));

@soubinkittiphanh
Copy link
Author

image

@pr0gramista
Copy link
Owner

Answering the title question: It really depends on the platform, but It seems to be supported.

Regarding your code:
You need to set proper codeTable for given language/printer.

Try TIS620, CP874, ISO-8859-11, 8859-11 really depends on the printer.

ticket.textEncoded(encTxt12, styles: PosStyles(codeTable: "TIS620"));

@soubinkittiphanh
Copy link
Author

image
For the picture above does it has to be the same both codeTable:"TIS620" with CharsetConverter.encode("TIS620") ?
Honestly i am new to this stuff, if i have to set proper codeTable where can i set those staff is it in the Library file ?

@soubinkittiphanh
Copy link
Author

image
image
Try all of them as your suggest and got error above, for the other one they could print but it is unreadable.
or am i put the thing in wrong place ?

@pr0gramista
Copy link
Owner

I don't know.

Here are the defined code pages for the profiles. As far as I remember you could also pass your own. CP874 is on the list.
https://github.com/andrey-ushakov/esc_pos_utils/blob/master/lib/resources/capabilities.json

But please note that charset_converter job is to only convert characters so your issue is out of scope.

Try to get help either on esc_pos_printer repository or the one from bluetooth version.
https://github.com/andrey-ushakov/esc_pos_printer
https://github.com/Rajath4/BluetoothThermalPrinter
You can also get help on Stack Overflow, which I strongly encourage

@soubinkittiphanh
Copy link
Author

Well, if you so could you please have a look in Stack Overflow follow by link below
https://stackoverflow.com/questions/59475607/how-to-print-asian-languages-to-a-thermal-printer-from-flutter

@savandev17
Copy link

This plugin is work for me https://pub.dev/packages/blue_print_pos

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