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

Error: Cannot parse (PLAIN) into a raw HTML command: charsetName #1152

Closed
tresf opened this issue Jun 29, 2023 · 0 comments
Closed

Error: Cannot parse (PLAIN) into a raw HTML command: charsetName #1152

tresf opened this issue Jun 29, 2023 · 0 comments
Labels
Milestone

Comments

@tresf
Copy link
Contributor

tresf commented Jun 29, 2023

As part of #978, some major refactors to the handling of encoding caused a regression.

To reproduce:

var data = [{
    type: "raw",
    format: "html",
    flavor: "plain",
    data: "<h1>Hello</h1>",
    options: { language: "ZPL" }
}];

var config = qz.configs.create("Zebra");

qz.print(config, data).catch(e => console.error(e));

Workaround:

Specify encoding:

- var config = qz.configs.create("Zebra");
+ var config = qz.configs.create("Zebra", { encoding: "UTF8" );
@tresf tresf added this to the 2.2.3 milestone Jun 29, 2023
@tresf tresf added the bug label Jun 29, 2023
@tresf tresf closed this as completed in a7c0b7e Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant