nini9140 / jzebra

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

Problem with printing certain characters #24

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.^XA^CI28
2.^FO600,50^A0,34,34^FVáäčďéěíĺľňóôőöŕšťúůűüýřžÁÄČĎ�
�ĚÍĹĽŇÓÔŐÖŔŠŤÚŮŰÜÝŘŽ^FS
3.^XZ

What is the expected output? What do you see instead?
Expected output is: 
áäčďéěíĺľňóôőöŕšťúůűüýřžÁÄČĎÉĚÍĹĽŇÓÔŐÖŔŠ
ŤÚŮŰÜÝŘŽ
But I see: 
áäčďéěíĺľ?óôőöŕšťúůűüýřž?ÄČĎÉĚÍĹĽŇÓÔŐÖŔŠŤ
ÚŮŰÜÝ?Ž

What version of the product are you using? On what operating system?
jZebra 1.1.5 on Windows 7 64bit

Please provide any additional information below.
When I create txt file with theese character with utf-8 coding and BOM and I 
send it to printer via "copy file.txt lpt1" everything prints ok.

Original issue reported on code.google.com by kubisro...@gmail.com on 25 Mar 2011 at 12:43

GoogleCodeExporter commented 9 years ago
@kubisroman:  This may be a duplicate of bug 19 
(http://code.google.com/p/jzebra/issues/detail?id=19).

What we've noticed is, by default, Windows tries to use its own code page for 
character encoding and there are several complains online about this without 
much resolve.

Bug 19 has similar issues in Linux with Cp1252.  Your issues sounds exactly the 
opposite.  Linux by default prints UTF-8, whereas Windows seems to print 
Cp1252. Although some code changes have been made to help the non-ASCII 
character sets, we haven't had much testing for these changes (Eko was 
unsuccessful in Linux).

That said, can you try the following:

1. Start, "View Advanced System Settings", Environment Variables

2. New, Variable Name=JAVA_TOOL_OPTIONS, Variable value=-Dfile.encoding=UTF8

3. OK, OK

4. Start, "cmd"

5. Type "java", look for "Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8" at 
the top.  That should be illustrative if the setting was successful.

6.  Close cmd.  Close and reopen the web browser.

7.  Test (again) printing the UTF8 characters, and post your success to this 
bug report.

-Tres

Original comment by tres.fin...@gmail.com on 25 Mar 2011 at 1:15

GoogleCodeExporter commented 9 years ago
Fixed in version 1.1.8 using setEncoding().  Confirmed by Eko.  Please contact 
mailing list for usage instructions until the wiki has been updated to reflect 
changes.

http://code.google.com/p/jzebra/downloads/list

Original comment by tres.fin...@gmail.com on 17 Sep 2011 at 5:22