esc_pos_bluetooth
esc_pos_bluetooth copied to clipboard
Problem with Vietnamese font
Hi @andrey-ushakov ,
This is good lib to print over thermal printer. I have tested, but there is still a problem with Vietnamese character.
I have changed all the alternatives to print VN font, including study your source code, but cannot get proper result.
ticket.text('VÉ XE', styles: PosStyles(align: PosAlign.left, codeTable: PosCodeTable.westEur), linesAfter: 0);
is ok, but only for vietnamese with one vietnamese signal, if the text have 2 signals, such as "tối" it prints failed.
I aslo try to use PosCodeTable.vietnam
which your lib support, but the same error.
Other trying is
utf8.encode('VÉ XE'); CharsetConverter.encode("windows1258", "VÉ XE");
all result failed.
I know that I can convert Vietnamese text into bytes by encoding proper type, then push into printer throughout your driver. So I dont know is this a issue of driver or I dont find true solution.
Please help me to solve this.
Thanks a lot, Khanglq.
i have issues with khmer language also. @andrey-ushakov please help to fix text encoding for unicode please