New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Print Chinese Garbled! #57
Comments
Hi, your printer needs to support Chinese character. |
Hi, Did you resolve the problem? I have the same problem, and I pretty sure that my printer char code setting is Chinese(BIG5). Yours' Jevy Wang |
I modified the source code need a iconv-lite module
and println:function(){}
used
|
Hi, Which printer did you use? I tried on POS-8220, and set the charset to GB18030, and it still print mess code. I'm wondering it is caused by printer. Do you have any other idea which could resolve the mess code problem? Thanks you very much. |
I want to print chinese but print out the Garbled.
English Is OK.
this is my code:
var printers = require("node-thermal-printer");
printers.init({
type: 'epson',
interface: 'printer:' + printer.getPrinters()[0].name,
characterSet:'CHINA'
});
printers.alignCenter();
printers.println(iconv.encode('--------测试打印----------','GBK'));
printers.println(iconv.encode('--------测试打印----------','UTF-8'));
printers.println('--------测试打印----------');
printers.println('hello');
printers.execute( function(err){
console.dir(err);
});
The text was updated successfully, but these errors were encountered: