I need to convert standard String to CP1250 with only one byte for every char, so for example polish char 'ł' should be parsed to 0xB3, no unicode with two bytes. When I'm trying to do something like that:
byte[] array = "ała".getBytes();
s = new String(array, 0, array.length, Charset.forName("CP1250"));
and next if I'm doing s.getBytes(); it returns more bytes than letters, and for 'ł' is 2 bytes like unicode. I need to converts every String and get bytes from them to exactly CP1250 codes like here: https://pl.wikipedia.org/wiki/Windows-1250#Tablica_kod.C3.B3w