encode arabic letters
i try to print arabic letters but it always gives me unknown results
like question marks or other depending on type of encode that i pass to .encode function
i try UTF-8 and different types of char encodes
Printer : GP-L80250I
the Code:
'use strict'; var escpos = require('escpos'); var iconv = require('iconv-lite'); var device = new escpos.USB(); var options = { encoding: "UTF-8" /* default */ } const printer = new escpos.Printer(device,options); device.open(function(err){ if(err) throw err; printer.model('qsprinter') .font('a') .align('RT') .size(1, 1) .text('تجربة الترميز') .text(iconv.encode('تجربة الترميز' , 'UTF-8')) .cut() .close() });
Did you solve it ?
@song940 can you help us in the Arabic encoding issue?