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

Unicode doesn't support #26

Closed
ul-rotha opened this issue Dec 26, 2019 · 13 comments
Closed

Unicode doesn't support #26

ul-rotha opened this issue Dec 26, 2019 · 13 comments

Comments

@ul-rotha
Copy link

Printer.connect('192.168.1.87', port: 9100).then((printer) {
printer.println(
'Regular:Welcome Cambodia');
printer.println('Special 1: ខ្ញុំស្រលាញ់កម្ពុជា ',
styles: PosStyles(codeTable: PosCodeTable.pc850));
printer.println('Special 2: blåbærgrød',
styles: PosStyles(codeTable: PosCodeTable.westEur));

@andrey-ushakov
Copy link
Owner

andrey-ushakov commented Mar 11, 2020

Hi,

Depending on your printer, it should be possible to print texts in supported languages, here are some examples:
https://github.com/andrey-ushakov/esc_pos_printer#using-code-tables

Unfortunately, my printer doesn't support Khmer language but probably yours does. Try it and I hope it will work!

Feel free to reopen the issue if you have any further questions

@ul-rotha
Copy link
Author

ul-rotha commented Jun 4, 2020

sorry sir. i could not find code tables for khmer language.

@ghost
Copy link

ghost commented Jul 19, 2020

@ul-rotha

Did you find any solution?
I am having the same problem with Japanese characters.
Please share if you have found any solution.

@ul-rotha
Copy link
Author

ul-rotha commented Jul 19, 2020 via email

@ghost
Copy link

ghost commented Jul 19, 2020

@ul-rotha

Thanks for your reply.
I am still trying to make this work.

Can I ask you one more thing?

When I try to write like this:
styles: PosStyles(codeTable: PosCodeTable.pc850));

it shows that PosCodeTable is undefined.

Where did you get that? / How did you use that?

@ul-rotha
Copy link
Author

ul-rotha commented Jul 19, 2020 via email

@ghost
Copy link

ghost commented Jul 19, 2020

@ul-rotha

Yes, I am trying to do the same. If I can make a PDF, then convert the pdf to image and then print the image, I can support every language.

But now the problem is that when I am creating a pdf file, it has lots of extra spaces at the bottom of the page.

Sadly i don't know what to do :(

@ul-rotha
Copy link
Author

ul-rotha commented Jul 19, 2020 via email

@ghost
Copy link

ghost commented Jul 19, 2020

@ul-rotha

Thanks for the suggestions. I will definitely look into those.
Anyway, let me know if you find any other easy solution.

@ul-rotha
Copy link
Author

ul-rotha commented Jul 19, 2020 via email

@ghost
Copy link

ghost commented Jul 19, 2020

@ul-rotha

Yes of course,

Can I ask you one more thing?

I am absolutely new in Flutter.
Do you know any package that can convert HTML Directly to Image?
I don't want to use PDF to Image.
Thank you.

@ul-rotha
Copy link
Author

@ul-rotha

Yes of course,

Can I ask you one more thing?

I am absolutely new in Flutter.
Do you know any package that can convert HTML Directly to Image?
I don't want to use PDF to Image.
Thank you.

Did you find solution?

@Kimmeng-S
Copy link

Hi I see this ticket was closed. Anyways I also facing this problem. Can you help advice

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