vikashsingh009 / jzebra

Automatically exported from code.google.com/p/jzebra
0 stars 0 forks source link

Persian or Arabic Unicode UTF-8 character - how to print? (print weird character) #105

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
If I try to print Persian or Arabic characters like سلام that is Unicode 
Utf-8 encoding , i get some weird characters printed. I can't seem to grasp how 
to get the correct character . 
2.I set the encoding to utf-8 by  document.jzebra.setEncoding("UTF-8"); and 
still has problem . 

What is the expected output? What do you see instead?
I expect to see Unicode UTF-8 character correctly . 

What version of the product are you using? On what operating system?
My OS is win7 32bit
Using jZebra 1.4.5
My Printer is Jolimark TP280

Please provide any additional information below.

Original issue reported on code.google.com by ahad.yek...@gmail.com on 28 Nov 2012 at 4:56

GoogleCodeExporter commented 9 years ago
Thank you for the detailed bug report.

Are you aware if this printer supports Arabic characters?

Do you have a technical documentation on what languages this printer supports?

The reason I ask is because some people have rendered chinese characters on the 
web server and send them to the printer as graphics.   This approach may be 
needed if the character set is not supported by your device.

-Tres

Original comment by tres.fin...@gmail.com on 28 Nov 2012 at 6:04

GoogleCodeExporter commented 9 years ago
Yes It support them . I have printed some Text from Microsoft Word and Notepad 
directly to thi printer , And it Shows good . 
I is not related to the printer I think , Did you test some Persian Text for 
printing by JZebra?

Original comment by ahad.yek...@gmail.com on 28 Nov 2012 at 8:10

Attachments:

GoogleCodeExporter commented 9 years ago
I see this printer supports ESC/POS as it's printing language.  Thank you for 
the manual.  Attached is the section of Epson's ESC/P manual that references 
changing character encoding to Arabic.  I am not very familiar with this, so 
please email the mailing list for more help.

On a side note, Microsoft Word and Notepad use PostScript to print, not ESC/POS.

ESC/POS is a raw printing language.  See more on raw printing here:
http://code.google.com/p/jzebra/wiki/WhatIsRawPrinting

PostScript is possible through jZebra, but it does not leverage specialized 
functions of the ESC/P language such as cutting a receipt, automatically 
generating barcodes, ejecting a cash register, etc.

See more on PostScript printing here:
http://code.google.com/p/jzebra/wiki/WhatIsPostScriptPrinting

Futhermore, PostScript functionality is very limited in jZebra, so I would 
suggest ESC/P if possible.

Closing bug and marking as invalid.  Please post further questions on the 
mailing list, jzebra-users@googlegroups.com

-Tres

Original comment by tres.fin...@gmail.com on 28 Nov 2012 at 10:42

Attachments:

GoogleCodeExporter commented 9 years ago
So you think that it`s not a Jzebra bug and I should change my printer ?
Could you test Jzebra Code on your printer and print some arabic or persian 
text , because it`s very important for me to know that what is the problem . 
I could`nt  Sendemail to jzebra-users@googlegroups.com  It answers failure .

Original comment by ahad.yek...@gmail.com on 29 Nov 2012 at 9:15

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
> So you think that it`s not a Jzebra bug 
What you described in your bug report is not a bug with jZebra, it is a 
misunderstanding of what raw printing versus PostScript printing is.  I've 
provided examples of both.

> So you think I should change my printer ?
I never said to change your printer, and I do not recommend this.  I recommend 
learning ESC/POS and using the provided commands illustrated in the ESC/POS 
programming guide to print Arabic characters.

I feel I explained this very well in my previous response.  If you would like 
me to troubleshoot this further for you, please contact my email.  I do not own 
a printer for testing so you would have to supply me with one.

-Tres

Original comment by tres.fin...@gmail.com on 29 Nov 2012 at 5:55

GoogleCodeExporter commented 9 years ago
Thank you very much for your answering . I didnt know where the problem was . I 
thought that Jzebra does`nt support UTF-8 for raw printing . 
But after that I realized that my printer maybe doesnt support that so I said 
if other printers dont have this problem I can change my printer easily 
beacuase it`s possible for me . this project which I`m working on, is a Beta 
and prototype So I should solve this problem by changing my code or change 
printer, So if you can help me to select one , I will thank you very much .
Google Does`nt show your mail address completely So I answerd you here. 

Original comment by ahad.yek...@gmail.com on 30 Nov 2012 at 9:38

GoogleCodeExporter commented 9 years ago
tres.finocchiaro@gmail.com

If you search Google. you will find it many, many times.  I hope you have taken 
some advice and started looking into ESC/P programming.

-Tres

Original comment by tres.fin...@gmail.com on 10 Dec 2012 at 6:33