Posts

Showing posts from November, 2010

Java Applet CP-1252 Linux

Update:  1/7/2011 My solution is right in the JavaDoc .  I take in a bunch of bytes, but never specify what format their in.  Java makes an assumption of what format they're in depending on the platform. Even worse, I initialize the SimpleDoc(rawCmds.getBytes(), docFlavor, docAttr); without specifying what format the Bytes were in.  This needed to change to new SimpleDoc(rawCmds..getBytes (charset) , docFlavor, docAttr); This article lead me to it... My solution will be simply to use the String function that accepts the "CharSet" option and force US-ASCII  and convert bytes using the same charset variable. EDIT: force  "Cp1252" -Tres I was asked the following question via email: Mr. Tres, .. I need your help to solve this: jZebra seems doesnt have ability to print-out extended ASCII (char 129-255) in Linux - but, it's OK in Windows. I guess, that jZebra is working only in ISO-8859-1 character encoding which supported by Windows OS only