Print Simplified Chinese Characters on an Epson TM-T88IVM

I am trying to print Chinese characters on an Epson TM-T88IV M (parallel port) using the Microsoft Point of Service SDK in C #. However, they appear as question marks on the printer. (?)

My PosPrinter has the following valid CharacterSetList character: 255,437,850,852,858,860,863,865,866,936,998,999,1252

And the next CapCharacterSet: Kanji

Page Code 1252 is the default Windows code page. 936 is a code page for simplified Chinese. In this case, I use code 936, but I could never display Chinese characters on the printer.

Example:

string str = "重新开始"; // open device as variable _ReceiptPrinter, claim it, mark it as enabled _ReceiptPrinter.CharacterSet = 936; _ReceiptPrinter.PrintNormal(PrinterStation.Receipt, str); 

It prints the text with all Chinese characters replaced by ?.

I am not sure whether additional escape codes must be specified before printing (ESC R 15?) Or if my printer is not configured correctly in Epson OPOS (v2.50e). I tried a few things, but nothing worked. Any ideas or code examples?

Note. In its self-test, the printer prints Chinese characters.

+6
printing point-of-sale epson opos
source share
1 answer

For multilingualism, the Epson TM-T88IV needs to convert the string to CodePage 936, and then present this string to ISO-8859-1.

See this other question for more details about the algorithm:

Can we simplify this string encoding code

do this before sending it to the printer. str = Encoding.GetEncoding ("ISO-8859-1"). GetString (Encoding.GetEncoding (_ReceiptPrinter.CharacterSet) .GetBytes (str));

+2
source share

All Articles