[BUG]: cannot print Azerbaijani characters
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 20/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- nodejs, typescript
- Domain
- embedded-iot
Research direction
Start with the printer.encode(...) calls and the iconv-lite SBCS encoding list shown in the reproduction. Determine which encoding path the target printer accepts, then verify output for the supplied Cyrillic and Azerbaijani strings; done means both character sets print without question marks.
Written by the indexing model from the issue text.
Description
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
-
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);
} -
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əğ
- Dominant language
- TypeScript
- Stars
- 1.6k
- Forks
- 443
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from lsongdev/node-escpos
-
[BUG]: Openbug
Difficulty 4/5 3-5 days Newbie friendliness 15/100
lsongdev/node-escpos#447 ·
-
[BUG]: AJCBOSE Openbug
Difficulty 5/5 Over a week Newbie friendliness 10/100
lsongdev/node-escpos#446 ·
-
Capt Bilal Open
Difficulty 5/5 Over a week Newbie friendliness 1/100
lsongdev/node-escpos#443 ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 35/100
lsongdev/node-escpos#442 · 2 reactions ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 38/100
lsongdev/node-escpos#441 · 5 comments · 1 reaction ·
All issues in lsongdev/node-escpos
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
bcgov/bc-wallet-mobile#4761 · 1 comment ·
-
external-issue to-triage
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
area-deployment area-integrations triage:bot-seen
Difficulty 2/5 Half a day Newbie friendliness 86/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
refactor
Difficulty 2/5 1-3 hours Newbie friendliness 84/100