.Net 通用控制对象的 POS 字符集兼容性问题
我最近为我在 C#.NET 中开发的“销售点”应用程序购买了一台 Star Micronics TSP100 打印机,我下载了 POS for .Net SDK 来操作打印机,但它不起作用。
经过一番研究,我发现我必须安装 monroecs CCO 才能使用 POS for .Net SDK 与打印机进行通信。
我面临的问题是,当我向打印机发送阿拉伯字母时,它会打印垃圾,即使打印机支持代码页“1001(阿拉伯语)”。我尝试过使用 C# 编码之类的东西,但仍然不起作用。您认为问题到底是什么?
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 garbage, 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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您遇到同样的问题,我找到了解决此问题的方法。
我将打印机设置为 CodePage 864 而不是 1001,并且我必须找出哪些 Unicode 值可以打印整套阿拉伯字符以获得完整的字符集。
对从键盘输入的单词进行编码后得到的 Unicode 值并不总是与打印机字符集的 Unicode 值相同,因此您需要使用 switch 函数来映射它们。
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.