andrey-ushakov / esc_pos_utils

Basic Flutter/Dart classes for ESC/POS printing
BSD 3-Clause "New" or "Revised" License
147 stars 329 forks source link

Localization #2

Closed niktses closed 4 years ago

niktses commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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