开发者

POS for .Net Common Control Objects CharacterSet Compatibility issue

开发者 https://www.devze.com 2023-03-22 08:37 出处:网络
I\'ve recently purchased a Star Micronics TSP100 Printer for my \"Point of Sale\" application which I\'m developing in C#.NET , I downloaded the POS for .Net SDK to manipulate the printer but it didn\

I've recently purchased a Star Micronics TSP100 Printer for my "Point of Sale" application which I'm developing in C#.NET , I downloaded the POS for .Net SDK to manipulate the printer but it didn't work.

after some research I found out that I have to install monroecs CCOs in order to communicate with the printer using POS for .Net SDK.

the problem that I'm facing is that when I send Arabic letters to the printer, it prints g开发者_如何学Pythonarbage, even though the printer supports code page "1001 (Arabic)". I've tried using C# encoding and stuff but still didn't work. what exactly do you think the problem is?


I found a solution to this problem in case you are having the same problem.

I set the printer to CodePage 864 instead of 1001 and I had to find out what Unicode values would print the whole set of Arabic characters to have a complete character set.

the Unicode values that you will get as a result of encoding an input word from the keyboard will not always be the same Unicode values for the printer character set, so you need to map them using switch function.

0

精彩评论

暂无评论...
验证码 换一张
取 消