HeligPfleigh / react-native-thermal-receipt-printer

A RN library for thermal printer
169 stars 103 forks source link

how to print special Charactere Ex.(éàè) #91

Open gerome-yocto opened 2 years ago

gerome-yocto commented 2 years ago

Ask your Question

pajkho commented 2 years ago

Hi!

Have you solved this issue? I'm also having issues with special chars..

omeranar1 commented 1 year ago

same issue

Bilel-Fitouri commented 5 months ago

use cp858 encoding, and add it in EPToolkit.js : var encoding_mappings_bytes = { // single byte encodings "CP437": Buffer.from([27, 116, 0]), // multiple bit encodings "GB18030": Buffer.from([28, 38, 28, 67, 0]), "BIG5": Buffer.from([28, 38, 28, 67, 1]), "UTF8": Buffer.from([28, 38, 28, 67, 255]), "CP858": Buffer.from([27, 116, 19]), <-- Add this line };