阿拉伯语打印问题

阿拉伯语打印问题

本文介绍了帮助-阿拉伯语打印问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我要使用C#(.NET 2.0)打印出Arbic收件人打印内容.
请通过串行接口查看以下每个代码.

Hi
I`m going to print out Arbic recipt print by using C#(.NET 2.0)
Please see each code as below by Serial interface.

byte[] cutemp = Encoding.GetEncoding(1256).GetBytes(content);
serialPort.BaseStream.WriteTimeout = 1500000;
serialPort.BaseStream.Write(cutemp, 0, cutemp.Length);
serialPort.BaseStream.Flush();



但是,问题是Arbic反向打印了.(上朝下)
当将英语和Arbic混合使用时,英语打印效果很好,只有阿拉伯语被反转了.
当我检查转换后的字节排列时,转换后的字节已在编码后反转.
例如,如果54321(请假设它们是阿拉伯语)并编码这些字母,则
字节排列[1] [2] [3] [4] [5]代替[5] [4] [3] [2] [1],类似这样.

有人帮我吗?!!
如果我不解决此问题,我的老板正等着我杀死我.



BUT, the problem is that Arbic print out in reverse.(Up side down)
When mix English and Arbic, English print out well, only arabic has been reversed.
As I checked converted Byte arrangment, converted byte has been reversed after encoding.
for example, if 54321(please imagine these would be Arabic) and encoding these letters,
Byte arrangement [1][2][3][4][5] instead of [5][4][3][2][1], something like this.

anybody help me out?!!
My boss is waiting for me to kill if I don`t fix this problem.

推荐答案



这篇关于帮助-阿拉伯语打印问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-14 21:45