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

Problem with Cyrilic codepage when in Condensed mode #69

Open
ghost opened this issue Oct 29, 2024 · 0 comments
Open

Problem with Cyrilic codepage when in Condensed mode #69

ghost opened this issue Oct 29, 2024 · 0 comments

Comments

@ghost
Copy link

ghost commented Oct 29, 2024

Test printer Birch CP-Q3, code page 1251-Cyrilic(Windows) - printing in Normal mode is totally OK but any attempt to print Cyrilic characters in condensed mode, results with blank spaces or question marks instead of wanted words. Following code:
Vip.Printer.Printer prn = new Vip.Printer.Printer("CP-Q3", Vip.Printer.Enums.PrinterType.Epson, Encoding.GetEncoding("Windows-1251"));
prn.CondensedMode(Vip.Printer.Enums.PrinterModeState.On);
prn.WriteLine("=====ОВО ЈЕ ЋИРИЛИЦА====="); // This means "THIS IS CYRILIC"
prn.CondensedMode(Vip.Printer.Enums.PrinterModeState.Off);
is resulting with: "===== =====" // Empty space in the middle is actually 15 blanks wide (length of my phrase) - GitHub shortens it when message is saved.
Than tried CondensedMode with string constructor, as well as Font method - both ways give question marks for each character wanted to print. Like:
prn.CondensedMode("=====ОВО ЈЕ ЋИРИЛИЦА=====");
prints: "=====???????????????====="); // 15 question marks
Tested it for few hours and concluded that problem emerges with characters/code pages other than IBM Standard, like 1251-Cyrilic or 1250-Central Europian (characters like ŠšĐđŽžČčĆć), both lower or upper case.
Any idea how to overcome this issue? Is it because of driver or some strange hardware fault?

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

0 participants