Git Product home page Git Product logo

Comments (8)

christostsakalos avatar christostsakalos commented on August 16, 2024 1

Hi Aris,

Yes, All I did was i.e in printFormattedTextAndCut:
printFormattedTextAndCut(
{
type: "tcp",
mmFeedPaper: 150,
address: #######,
port: 9100,
charsetEncoding: {
charsetName: "CP737",
charsetId: 12,
},
id: ######,
printerDpi: 203,
printerWidthMM: 72,
printerNbrCharactersPerLine: 40,
},

Take a note that CP737 might also need configuration on the printer level as well depending on the model.

from thermal-printer-cordova-plugin.

arisSiozos avatar arisSiozos commented on August 16, 2024 1

Hi @arisSiozos, how you get the charsetId?

By reading printer's manual. I think every printer has its own pair for charset names and Id's. In my case for most European languages the Id is 45.

from thermal-printer-cordova-plugin.

arisSiozos avatar arisSiozos commented on August 16, 2024

Hello Chris. Did you manage to solve this?
I also need to use this plugin to print in Greek so i may need your help!

from thermal-printer-cordova-plugin.

arisSiozos avatar arisSiozos commented on August 16, 2024

Thanks for your response Chris!
for my printer it was "WCP1253" and charsetId:45 (POS 80 printer).

from thermal-printer-cordova-plugin.

sws-ylsoh avatar sws-ylsoh commented on August 16, 2024

Hi @arisSiozos, how you get the charsetId?

from thermal-printer-cordova-plugin.

sws-ylsoh avatar sws-ylsoh commented on August 16, 2024

Hi @arisSiozos, how you get the charsetId?

By reading printer's manual. I think every printer has its own pair for charset names and Id's. In my case for most European languages the Id is 45.

Thanks for your reply. Too bad the printer manual doesn't have anything about the charsetId.

The model I am using is Imin POS D4. The printer is built-in and the documentation here .

Possible I can send some command or anyway to print the charset table?

from thermal-printer-cordova-plugin.

arisSiozos avatar arisSiozos commented on August 16, 2024

Sorry for taking too long to reply. I couldnt find anything for your printer sadly. Today i tried to print Greek with another printer(POS80C), whose manual had charsetId 45 for Greek letters, but i had to use charsetId:"15" in order to work (Makes no sense).

from thermal-printer-cordova-plugin.

christostsakalos avatar christostsakalos commented on August 16, 2024

I'm attaching this here DantSu/ESCPOS-ThermalPrinter-Android#31
It's a list of charset ids

from thermal-printer-cordova-plugin.

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.