I have a printer and SDK to work with it in Java. Printer working well with english letters and digits but doesn't print correctly special symbols like 'ä' or 'ê'.
I suppose that I need to convert string in charset used by printer. But I don't know what is the charset and has no chanse to get it now.
I run test printing with this simple code:
for (int i = 0; i < 256; i++) {
byte[] a = new byte[1];
a[0] = (byte) i;
printer.print((i+" ").getBytes());
printer.print(a);
printer.newLine();
}
And now I know that 'ä' has code 132 and 'ê' has code 136.
How to find charset name, when I know which code corresponding to symbol?