i have to print a raw text printer where i have to se the codepage charset. I found that the best charset for my application is the IBM858.
Now the problem is to encode the strings to this codepage.
I tried this:
test = new String("#$@°\\è^ùàòèì\n".getBytes(),"Cp858");
file.write(test.getBytes());
but chars don’t match.
This encodes the UTF-16 string as Cp858: