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

Can't print other languages properly #135

Open
doufu060514 opened this issue Feb 16, 2024 · 5 comments
Open

Can't print other languages properly #135

doufu060514 opened this issue Feb 16, 2024 · 5 comments

Comments

@doufu060514
Copy link

doufu060514 commented Feb 16, 2024

Hi, I have a TM-T82IIIL printer and using latest version of the package. Can successfully initialize and print the english text. But it can't print other lanaguages like chinese or japanese properly (success if print with epson app). Example code & print results could be found below, any suggestion would be appricated

`
EscPosPrinter.init({
target: 'TCP:192.168.50.222',
seriesName: 'EPOS2_TM_T82',
language: 'EPOS2_LANG_JA',
})

printing
.initialize()
.align('center')
.size(3, 3)
.line('アラビア語!')
.smooth(true)
.cut()
.send();

or

EscPosPrinter.init({
target: 'TCP:192.168.50.222',
seriesName: 'EPOS2_TM_T82',
language: 'EPOS2_LANG_ZH_CN', // Also tried EPOS2_LANG_ZH_TW
})

printing
.initialize()
.align('center')
.size(3, 3)
.line('你好!')
.smooth(true)
.cut()
.send();
`

a9294f772cd6a97cdd2e71807a75db89

@tr3v3r
Copy link
Owner

tr3v3r commented Feb 19, 2024

@doufu060514 hi !
is it for both platforms?

@ahmad71666
Copy link

@tr3v3r can we print arabic somehow? or any workaround?

@doufu060514
Copy link
Author

Cool, I got a update on it, sorry for the late reply because i was waiting for the printer to be shipped from AU.

Might be silly but wish could at least help someone in future.

Thanks for another post regarding japenses mentioned "ANK", so what I have found from this hint is check the EPSON printer specification, if your one only has "ANK" in the characters, it can't print the other language properly even set the language code. Make sure the printer specification contains the characters (same serials may have different characters deponds on the country) you are using and should be able to print properly with it.

@tr3v3r
Copy link
Owner

tr3v3r commented Mar 20, 2024

@doufu060514 @ahmad71666

BTW guys you can use the beta version of this lib with a reworked printing approach.
It resolves almost all known issues including this one with hardcoded ANK value.

Please check the details here

#139

@ahmad71666
Copy link

@tr3v3r okay will check tomorrow, Appreciate your support, Thank You!

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

No branches or pull requests

3 participants