Skip to content
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

Hello, how can I print Chinese #22

Open
jswangtao opened this issue Jul 10, 2023 · 3 comments
Open

Hello, how can I print Chinese #22

jswangtao opened this issue Jul 10, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@jswangtao
Copy link

let printValue = encoder.text("中国").encode()

@jackadam1981
Copy link

https://www.cnblogs.com/jackadam/p/17790516.html
或许对你有帮助,我使用iconv-lite,转编码为gb18030,可以打印中文。

@NielsLeenheer NielsLeenheer transferred this issue from NielsLeenheer/EscPosEncoder Sep 21, 2024
@NielsLeenheer NielsLeenheer added the enhancement New feature or request label Sep 21, 2024
@EthanZhuGit
Copy link

let printValue = encoder.text("中国").encode()

你好,请问你实现了吗

@EthanZhuGit
Copy link

https://www.cnblogs.com/jackadam/p/17790516.html 或许对你有帮助,我使用iconv-lite,转编码为gb18030,可以打印中文。

大佬你好,调用iconv.encode("中文", 'gb18030') 的返回的是一个Buffer类型,应该如何使用呢,你是修改了这个库的源码?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants