Code Monkey home page Code Monkey logo

Comments (9)

DantSu avatar DantSu commented on June 27, 2024

My printer have this id for charsets :
20200623_151000

Here is charset id for an Epson printer :
https://www.epson-biz.com/modules/ref_escpos/index.php?content_id=32

You have to find the correct charset for Japanese char for your printer. I can't help you more.

from escpos-thermalprinter-android.

 avatar commented on June 27, 2024

@DantSu

Thank you so much for replying.

I understood the codepage thing a little bit. I have mailed my printer company for the printer's codepage. They usually reply very fast. When I get the codepage, I will try again. I might have some questions that I want to ask you. That's why I am not closing this issue for now. Is it okay to do?

Thank you.

from escpos-thermalprinter-android.

DantSu avatar DantSu commented on June 27, 2024

Yes, keep open this issue. Say me when all is done.

from escpos-thermalprinter-android.

 avatar commented on June 27, 2024

@DantSu

Thank you so much.

I have got my printer's Codepage list.

image0

I want to print all kinds of Japanese characters consists of Hiragana, Katakana & kanji.
Now how should I write the EscPosCharsetEncoding function?

I have tried the below code but it still doesn't work
EscPosPrinter printer = new EscPosPrinter(new TcpConnection("192.168.1.5", 9100), 203, 80f, 48, new EscPosCharsetEncoding("Shift_JIS", 1));

from escpos-thermalprinter-android.

DantSu avatar DantSu commented on June 27, 2024

x-IBM942 | Cp942 | ibm-942 cp942 ibm942 942 | IBM OS/2 Japanese, superset of Cp932

Try this :

new EscPosCharsetEncoding("x-IBM942", 1)
new EscPosCharsetEncoding("x-IBM942", 29)

May be that will work

from escpos-thermalprinter-android.

 avatar commented on June 27, 2024

@DantSu

It didn't work :( :(

I also tried other things like
IBM942
ibm-942
ibm942
IBM943

This also Doesn't work.

English characters are printing fine but Katakana characters are printing garbage values.
Are there any other suggestions?

from escpos-thermalprinter-android.

DantSu avatar DantSu commented on June 27, 2024
new EscPosCharsetEncoding("IBM290", 1)
new EscPosCharsetEncoding("IBM290", 29)
new EscPosCharsetEncoding("JIS_X0201", 1)
new EscPosCharsetEncoding("JIS_X0201", 29)
new EscPosCharsetEncoding("x-IBM930", 1)
new EscPosCharsetEncoding("x-IBM930", 29)

I haven't more options after that.

https://docs.oracle.com/javase/8/docs/technotes/guides/intl/encoding.doc.html

from escpos-thermalprinter-android.

 avatar commented on June 27, 2024

@DantSu

Thank you so much for the references.
I couldn't get it to work properly.

I am trying to solve the Unicode problem by using HTML 2 image. And then printing that image.

Reference - HTML2Image_ESC_POS

Thanks a lot for your time and support. :)

from escpos-thermalprinter-android.

krispusis1991 avatar krispusis1991 commented on June 27, 2024

excuse me i want to print thai language
How it works
EscPosCharsetEncoding("?", ?)

from escpos-thermalprinter-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.