Comments (9)
My printer have this id for charsets :
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.
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.
Yes, keep open this issue. Say me when all is done.
from escpos-thermalprinter-android.
Thank you so much.
I have got my printer's Codepage list.
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.
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.
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.
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.
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.
excuse me i want to print thai language
How it works
EscPosCharsetEncoding("?", ?)
from escpos-thermalprinter-android.
Related Issues (20)
- Is This Work On Argox HOT 1
- Device Class ID changed HOT 3
- Random Chinese printing HOT 1
- Printing Issues in STAR Printer MCP30 HOT 1
- Letter "r" is coming at the start of print HOT 3
- I can't print multiple times HOT 2
- After update compileSdkVersion and targetSdkVersion to 34 USB crash HOT 1
- Print from multiple devices at the same time HOT 1
- Can't print with android pos with built-in printer HOT 2
- is there any callback from printer instance or others end which can return printed successfully or not? HOT 1
- Indian language tamil font is not printing HOT 5
- Double line spacing issue on Bixolon SRP-275IIIC Print
- Update the Readme file
- Blocked PAX A920 PRO
- Unexpected behavior when printing more than one time in sequence
- Can't print arabic on SUNMI Devices HOT 1
- How i can change the font size with my own prefer size?
- buzzer integrated HOT 1
- Crashing with broadcast com.android.example.USB_PERMISSION HOT 2
- SUNMI "r" problem with a lots of test and extra infos HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from escpos-thermalprinter-android.