Use \u escape syntax for Latin-1 chars to avoid weird encoding issue

git-svn-id: https://zxing.googlecode.com/svn/trunk@1825 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen 2011-06-14 19:04:49 +00:00
parent dadbc49cc0
commit 1d80e8abf5

View file

@ -38,10 +38,10 @@ public final class Code128Writer extends UPCEANWriter {
private static final int CODE_STOP = 106;
// Dummy characters used to specify control characters in input
private static final char ESCAPE_FNC_1 = 'ñ'; // 0xF1
private static final char ESCAPE_FNC_2 = 'ò'; // 0xF2
private static final char ESCAPE_FNC_3 = 'ó'; // 0xF3
private static final char ESCAPE_FNC_4 = 'ô'; // 0xF4
private static final char ESCAPE_FNC_1 = '\u00f1';
private static final char ESCAPE_FNC_2 = '\u00f2';
private static final char ESCAPE_FNC_3 = '\u00f3';
private static final char ESCAPE_FNC_4 = '\u00f4';
private static final int CODE_FNC_1 = 102; // Code A, Code B, Code C
private static final int CODE_FNC_2 = 97; // Code A, Code B