[go: up one dir, main page]

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

The encoding seems wrong with mixed data creation methods #41

Open
shikouchen opened this issue Jun 26, 2024 · 2 comments
Open

The encoding seems wrong with mixed data creation methods #41

shikouchen opened this issue Jun 26, 2024 · 2 comments

Comments

@shikouchen
Copy link

I am using Star MC-Print3, and try to use both receipline and official cputil to transform the content.

receipline is working well, if all jobs are converted via receipline. While mixed transform approaches might cause the issue.

time1: print job with receipline -> working well
time2: print job with cputil -> working well
time3: print job with receipline -> the encoding seems has the issue.

    const printer: Printer = {
      cpl: 48,
      encoding: "shiftjis",
      upsideDown: true,
      spacing: true,
      cutting: true,
      command: "starmbcs",
    };
    // console.log(content);
    const command = receiptline.transform(content, printer);
    const bin = Buffer.from(command.slice(6), "binary");
    return bin.toString("base64");
@shikouchen
Copy link
Author
shikouchen commented Jun 26, 2024

This is the example of receipt that has issue on step3
image

@shikouchen
Copy link
Author

If I reboot the printer and star using receiptline only, then it is working.

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

1 participant