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

Localization #2

Closed
niktses opened this issue Mar 12, 2020 · 3 comments
Closed

Localization #2

niktses opened this issue Mar 12, 2020 · 3 comments

Comments

@niktses
Copy link

niktses commented Mar 12, 2020

We need to be able to create PosCodeTable.
It seems to me that not all printers have the same code tables.
I need to use greek on epson printer.
Check here for epson code pages.
https://reference.epson-biz.com/modules/ref_charcode_en/index.php?content_id=1

I would like to be able to do something like PosCodeTable(15).

@niktses
Copy link
Author

niktses commented Mar 12, 2020

it seems to me that even if i alter your code to pass 15 for greek it is still not printing for invalid character

@andrey-ushakov
Copy link
Owner

Hi,

Have you tried to encode your text before sending it to the printer using charset_converter package?
Here are some examples:
https://github.com/andrey-ushakov/esc_pos_printer#using-code-tables

You are right, different printers may support different code tables and/or have different codes for them. It's better to check your printer's specifications (usually you can print a ticket listing all the supporter code tables).

@niktses
Copy link
Author

niktses commented Mar 12, 2020

thanks i saw after your comment that you have a new version

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

2 participants