Thermal Receipt Printer Guts

Breakout boards, sensors, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
alemelin
 
Posts: 6
Joined: Wed Apr 28, 2021 12:51 pm

Thermal Receipt Printer Guts

Post by alemelin »

Hello,

I have just purchased and received the Thermal Receipt Printer Guts PID: 2753. It seems to work well, but it does not print special characters in French such as é, à, ç and so on. How can I proceed to print them correctly?

Thanks

Order No. 3039540-1755469217

User avatar
alemelin
 
Posts: 6
Joined: Wed Apr 28, 2021 12:51 pm

Re: Thermal Receipt Printer Guts

Post by alemelin »

Eventually I found it. I thought that by adding #define CHARSET_FRANCE 1, the special characters in French would print correctly, but I replaced them with the replace() function.
String s1 = "Text";
s1.replace("é", "\x82");
s1.replace("è", "\x8A");
s1.replace("ê", "\x88");
s1.replace("u", "\x97");
s1.replace("©", "\xB8");
printer.print(s1);
Last edited by alemelin on Wed Mar 22, 2023 4:46 pm, edited 1 time in total.

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Products from Adafruit”