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

[BUG]: cannot print Azerbaijani characters #433

Open
faigalizade opened this issue Jul 28, 2024 · 0 comments
Open

[BUG]: cannot print Azerbaijani characters #433

faigalizade opened this issue Jul 28, 2024 · 0 comments
Labels

Comments

@faigalizade
Copy link

Description of the bug

Hello everyone I have tried all encodes which i found in web (iconv encodes)
and in loop i have tried print some text in azerbaijani.
But characters üÜçÇşŞıIəƏğĞİi
prints always with ? mark.
Any solve methods?

Steps To Reproduce

  1. First way
    const encodes = require('iconv-lite/encodings/sbcs-data');
    for (const encode of Object.keys(encodes)) {
    printer.encode(encode).text('Salam necəsən məbləğ ' + encode);
    }

  2. second list generated by ChatGPT
    const iconvEncodings = [
    "UTF-8",
    "UTF-16",
    "UTF-16BE",
    "UTF-16LE",
    "UTF-32",
    "UTF-32BE",
    "UTF-32LE",
    "ISO-8859-1",
    "ISO-8859-2",
    "ISO-8859-3",
    "ISO-8859-4",
    "ISO-8859-5",
    "ISO-8859-6",
    "ISO-8859-7",
    "ISO-8859-8",
    "ISO-8859-9",
    "ISO-8859-10",
    "ISO-8859-11",
    "ISO-8859-13",
    "ISO-8859-14",
    "ISO-8859-15",
    "ISO-8859-16",
    "CP1250",
    "CP1251",
    "CP1252",
    "CP1253",
    "CP1254",
    "CP1255",
    "CP1256",
    "CP1257",
    "CP1258",
    "CP437",
    "CP850",
    "CP852",
    "CP855",
    "CP857",
    "CP860",
    "CP861",
    "CP862",
    "CP863",
    "CP864",
    "CP865",
    "CP866",
    "CP869",
    "CP936",
    "CP949",
    "CP950",
    "CP932",
    "KOI8-R",
    "KOI8-U",
    "MacRoman",
    "MacCentralEurope",
    "MacIceland",
    "MacCroatian",
    "MacRomania",
    "MacCyrillic",
    "MacGreek",
    "MacTurkish",
    "MacHebrew",
    "MacArabic",
    "MacThai",
    "MacChineseSimplified",
    "MacChineseTraditional",
    "MacJapanese",
    "MacKorean"
    ];

Additional Information

Pleace tell answer with example code
and I would like print Cyrillic and Azerbaijani characters in same time
Text for example:
Привет как дела?
Ödəniş üçün Ümumi məbləğ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 participant